| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class ListenerProviderWithContainer implements ListenerProviderInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var array<class-string, string[]> |
||
|
|
|||
| 22 | */ |
||
| 23 | private $listeners; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var ContainerInterface |
||
| 27 | */ |
||
| 28 | private $container; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param array<class-string, string[]> $listeners |
||
| 32 | */ |
||
| 33 | public function __construct(array $listeners, ContainerInterface $container) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | * |
||
| 42 | * @return iterable<callable(object):void> |
||
| 43 | */ |
||
| 44 | public function getListenersForEvent(object $event): iterable |
||
| 55 |