1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Core\Event; |
4: | |
5: | use Psr\EventDispatcher\StoppableEventInterface as PsrStoppableEventInterface; |
6: | |
7: | /** |
8: | * @api |
9: | */ |
10: | interface StoppableEventInterface extends PsrStoppableEventInterface |
11: | { |
12: | /** |
13: | * Check if the event should be propagated to listeners |
14: | * |
15: | * @return bool If `true`, no further listeners should be called for this |
16: | * event. |
17: | */ |
18: | public function isPropagationStopped(): bool; |
19: | |
20: | /** |
21: | * Do not propagate the event to further listeners |
22: | * |
23: | * @return $this |
24: | */ |
25: | public function stopPropagation(); |
26: | } |
27: |