| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class ListenerProviderWithMap implements ListenerProviderInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array<class-string, callable[]> |
||
|
|
|||
| 21 | */ |
||
| 22 | private $listeners; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param array<class-string, callable[]> $listeners |
||
| 26 | */ |
||
| 27 | public function __construct(array $listeners) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | * |
||
| 35 | * @return iterable<callable(object):void> |
||
| 36 | */ |
||
| 37 | public function getListenersForEvent(object $event): iterable |
||
| 48 |