Total Complexity | 8 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 76.92% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class Dispatcher implements \Psr\EventDispatcher\EventDispatcherInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var ListenerProviderInterface |
||
17 | */ |
||
18 | protected $listenerProvider = null; |
||
19 | |||
20 | /** |
||
21 | * EventDispatcher constructor. |
||
22 | * @param ListenerProviderInterface $listenerProvider |
||
23 | */ |
||
24 | 1 | public function __construct(ListenerProviderInterface $listenerProvider) |
|
25 | { |
||
26 | 1 | $this->listenerProvider = $listenerProvider; |
|
27 | 1 | } |
|
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | 2 | public function dispatch(object $event) |
|
55 | } |
||
56 | } |
||
57 |