| 1 | <?php |
||
| 26 | abstract class AbstractEvent |
||
| 27 | { |
||
| 28 | private $propagationStopped = false; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns whether further event listeners should be triggered. |
||
| 32 | */ |
||
| 33 | final public function isPropagationStopped(): bool |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Stops the propagation of the event to further event listeners. |
||
| 40 | * |
||
| 41 | * If multiple event listeners are connected to the same event, no |
||
| 42 | * further event listener will be triggered once any trigger calls |
||
| 43 | * stopPropagation(). |
||
| 44 | */ |
||
| 45 | final public function stopPropagation(): void |
||
| 49 | } |
||
| 50 |