| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | trait EventDispatcherTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Event dispatcher. |
||
| 26 | * |
||
| 27 | * @var EventDispatcherInterface|null |
||
| 28 | */ |
||
| 29 | private $eventDispatcher; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the event dispatcher. |
||
| 33 | * |
||
| 34 | * @return EventDispatcherInterface|null Returns the event dispatcher. |
||
| 35 | */ |
||
| 36 | public function getEventDispatcher(): ?EventDispatcherInterface { |
||
| 37 | return $this->eventDispatcher; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the event dispatcher. |
||
| 42 | * |
||
| 43 | * @param EventDispatcherInterface|null $eventDispatcher The event dispatcher. |
||
| 44 | * @return self Returns this instance. |
||
| 45 | */ |
||
| 46 | protected function setEventDispatcher(?EventDispatcherInterface $eventDispatcher): self { |
||
| 49 | } |
||
| 50 | } |
||
| 51 |