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