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