| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait EmitterAwarePolyfill |
||
| 11 | { |
||
| 12 | private EventEmitter $emitter; |
||
| 13 | |||
| 14 | 47 | public function getEmitter(): EventEmitter |
|
| 15 | { |
||
| 16 | 47 | return $this->emitter ??= new EventEmitter(); |
|
| 17 | } |
||
| 18 | |||
| 19 | 8 | public function setEmitter(EventEmitter $emitter): self |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function getEventDispatcher(): EventDispatcherInterface |
|
| 27 | { |
||
| 28 | 1 | return $this->getEmitter(); |
|
| 29 | } |
||
| 30 | |||
| 31 | 7 | public function getListenerRegistry(): ListenerRegistry |
|
| 34 | } |
||
| 35 | } |
||
| 36 |