Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | protected function addInterfaceListeners($eventName, array $listeners = []): array |
||
28 | { |
||
29 | foreach (class_implements($eventName) as $interface) { |
||
30 | $interfaceListeners = parent::getListeners($interface); |
||
31 | if (count($interfaceListeners)) { |
||
32 | $listeners = array_merge($listeners, $interfaceListeners); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $listeners; |
||
37 | } |
||
39 |