| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 11 | class ListenerProvider implements ListenerProviderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ListenerProviderConfigInterface |
||
| 15 | */ |
||
| 16 | private $config; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * ListenerProvider constructor. |
||
| 20 | * @param ListenerProviderConfigInterface $config |
||
| 21 | */ |
||
| 22 | public function __construct(ListenerProviderConfigInterface $config) |
||
| 23 | { |
||
| 24 | $this->config = $config; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param object $event |
||
| 29 | * An event for which to return the relevant listeners. |
||
| 30 | * @return iterable[callable] |
||
| 31 | * An iterable (array, iterator, or generator) of callables. Each |
||
| 32 | * callable MUST be type-compatible with $event. |
||
| 33 | */ |
||
| 34 | public function getListenersForEvent(object $event): iterable |
||
| 37 | } |
||
| 38 | } |
||
| 39 |