Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait EventDispatcherAwareTrait |
||
8 | { |
||
9 | /** @var EventDispatcherInterface|null */ |
||
10 | protected $eventDispatcher; |
||
11 | |||
12 | public function useEventDispatcher(?EventDispatcherInterface $eventDispatcher): void |
||
13 | { |
||
14 | $this->eventDispatcher = $eventDispatcher; |
||
15 | } |
||
16 | |||
17 | protected function dispatchEvent(object $event): object |
||
24 | } |
||
25 | } |
||
26 |