| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class DeferredDispatcher implements EventDispatcherInterface |
||
| 8 | { |
||
| 9 | private EventDispatcherInterface $dispatcher; |
||
| 10 | private array $events = []; |
||
| 11 | |||
| 12 | 2 | public function __construct(EventDispatcherInterface $dispatcher) |
|
| 13 | { |
||
| 14 | 2 | $this->dispatcher = $dispatcher; |
|
| 15 | 2 | } |
|
| 16 | |||
| 17 | 2 | public function dispatch(object $event) |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function flush(): array |
|
| 32 | } |
||
| 33 | } |
||
| 34 |