| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | class EventDispatcher implements EventDispatcherInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ListenerProviderInterface |
||
| 16 | */ |
||
| 17 | private $provider; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * EventDispatcher constructor. |
||
| 21 | * @param ListenerProviderInterface $provider |
||
| 22 | */ |
||
| 23 | public function __construct(ListenerProviderInterface $provider) |
||
| 24 | { |
||
| 25 | $this->provider = $provider; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Provide all listeners with an event to process. |
||
| 30 | * |
||
| 31 | * @param object $event |
||
| 32 | * The object to process. |
||
| 33 | * |
||
| 34 | * @return object |
||
| 35 | * The Event that was passed, now modified by listeners. |
||
| 36 | */ |
||
| 37 | public function dispatch(object $event) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |