| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class StoppableUserEntityEvent extends UserEntityEvent implements StoppableEventInterface |
||
| 24 | { |
||
| 25 | private $propagationStopped = false; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function isPropagationStopped(): bool |
||
| 31 | { |
||
| 32 | return $this->propagationStopped; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Stops the propagation of the event to further event listeners. |
||
| 37 | * |
||
| 38 | * If multiple event listeners are connected to the same event, no |
||
| 39 | * further event listener will be triggered once any trigger calls |
||
| 40 | * stopPropagation(). |
||
| 41 | */ |
||
| 42 | public function stopPropagation(): void |
||
| 45 | } |
||
| 46 | } |
||
| 47 |