1 | <?php |
||
24 | trait EventDispatcherAwareTrait |
||
25 | { |
||
26 | /** |
||
27 | * @var EventDispatcherInterface |
||
28 | */ |
||
29 | private $eventDispatcher; |
||
30 | |||
31 | /** |
||
32 | * Set event dispatcher. |
||
33 | * |
||
34 | * @param EventDispatcherInterface $dispatcher |
||
35 | * @return $this |
||
36 | */ |
||
37 | 42 | public function setEventDispatcher(EventDispatcherInterface $dispatcher) |
|
42 | |||
43 | /** |
||
44 | * Get event dispatcher. |
||
45 | * |
||
46 | * @return EventDispatcherInterface |
||
47 | */ |
||
48 | 24 | public function getEventDispatcher() |
|
56 | } |
||
57 |