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