1 | <?php |
||
7 | trait EventDispatcherAwareTrait |
||
8 | { |
||
9 | /** |
||
10 | * The evetn dispatcher instance. |
||
11 | * |
||
12 | * @var EventDispatcherInterface|null |
||
13 | */ |
||
14 | protected $eventDispatcher; |
||
15 | |||
16 | /** |
||
17 | * Set the Emitter. |
||
18 | * |
||
19 | * @param EventDispatcherInterface|null $eventDispatcher |
||
20 | * |
||
21 | * @return $this |
||
22 | */ |
||
23 | 7 | public function setEventDispatcher(EventDispatcherInterface $eventDispatcher = null) |
|
29 | |||
30 | /** |
||
31 | * Get the Emitter. |
||
32 | * |
||
33 | * @return EmitterInterface |
||
34 | */ |
||
35 | 33 | public function getEventDispatcher() |
|
43 | } |
||
44 |