Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | abstract class AbstractEvent implements StoppableEventInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var bool |
||
34 | * |
||
35 | * @psalm-readonly-allow-private-mutation |
||
36 | */ |
||
37 | private $propagationStopped = false; |
||
38 | |||
39 | /** |
||
40 | * Returns whether further event listeners should be triggered. |
||
41 | */ |
||
42 | final public function isPropagationStopped(): bool |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Stops the propagation of the event to further event listeners. |
||
49 | * |
||
50 | * If multiple event listeners are connected to the same event, no |
||
51 | * further event listener will be triggered once any trigger calls |
||
52 | * stopPropagation(). |
||
53 | */ |
||
54 | final public function stopPropagation(): void |
||
59 |