1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Core;
4:
5: use Psr\EventDispatcher\StoppableEventInterface as PsrStoppableEventInterface;
6:
7: /**
8: * A cancellable event
9: */
10: interface StoppableEventInterface extends PsrStoppableEventInterface
11: {
12: /**
13: * True if the event should not be passed to listeners
14: */
15: public function isPropagationStopped(): bool;
16:
17: /**
18: * Don't pass the event to listeners
19: *
20: * @return $this
21: */
22: public function stopPropagation();
23: }
24: