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