Imbo\EventManager\Event::stopPropagation PHP Method

stopPropagation() public method

Stops the propagation of the event
public stopPropagation ( )
    public function stopPropagation()
    {
        $this->propagationStopped = true;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @covers Imbo\EventManager\Event::stopPropagation
  * @covers Imbo\EventManager\Event::isPropagationStopped
  */
 public function testCanStopPropagation()
 {
     $this->assertFalse($this->event->isPropagationStopped());
     $this->assertSame($this->event, $this->event->stopPropagation());
     $this->assertTrue($this->event->isPropagationStopped());
 }