| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 54.55% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class AbstractEvent implements StoppableEventInterface, HasEventName |
||
| 11 | { |
||
| 12 | private bool $propagationStopped = false; |
||
| 13 | |||
| 14 | 40 | public function __construct(private string $name) |
|
| 15 | { |
||
| 16 | 40 | } |
|
| 17 | |||
| 18 | 40 | public function eventName(): string |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Backwards compatibility method |
||
| 25 | * |
||
| 26 | * @deprecated use eventName instead |
||
| 27 | */ |
||
| 28 | public function getName(): string |
||
| 31 | } |
||
| 32 | |||
| 33 | 5 | public function isPropagationStopped(): bool |
|
| 34 | { |
||
| 35 | 5 | return $this->propagationStopped; |
|
| 36 | } |
||
| 37 | |||
| 38 | public function stopPropagation(): self |
||
| 43 | } |
||
| 44 | } |
||
| 45 |