| Total Complexity | 2 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Coverage | 40% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class EventEmitter extends EventDispatcher |
||
| 11 | { |
||
| 12 | public function addListener(string $event, callable $listener, int $priority = ListenerPriority::NORMAL): self |
||
| 13 | { |
||
| 14 | $this->subscribeTo($event, $listener, $priority); |
||
| 15 | |||
| 16 | return $this; |
||
| 17 | } |
||
| 18 | |||
| 19 | 40 | public function emit(object $event): object |
|
| 22 | } |
||
| 23 | } |
||
| 24 |