Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 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 | 2997 | final public function isPropagationStopped(): bool |
|
43 | { |
||
44 | 2997 | return $this->propagationStopped; |
|
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 | 6 | final public function stopPropagation(): void |
|
57 | 6 | } |
|
58 | } |
||
59 |