Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ListenerProvider implements ListenerProviderInterface, ListenerCollectorInterface |
||
12 | { |
||
13 | private ListenerCollection $listenerCollection; |
||
14 | |||
15 | 4 | public function __construct() |
|
18 | 4 | } |
|
19 | |||
20 | 2 | public function addListener(string $eventClass, callable $listener): void |
|
23 | 2 | } |
|
24 | |||
25 | /** |
||
26 | * @param StoppableEventInterface $event |
||
27 | * @return iterable<object> |
||
28 | */ |
||
29 | 2 | public function getListenersForEvent(object $event): iterable |
|
36 |