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