for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yiisoft\EventDispatcher\Tests\Event;
use Psr\EventDispatcher\StoppableEventInterface;
class StoppableEvent extends Event implements StoppableEventInterface
{
private $isPropagationStopped = false;
public function isPropagationStopped(): bool
return $this->isPropagationStopped;
}
public function stopPropagation()
$this->isPropagationStopped = true;