| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class CollectingEventDispatcher implements EventDispatcherInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array<object> |
||
| 14 | */ |
||
| 15 | private array $events = []; |
||
| 16 | |||
| 17 | public function dispatch(object $event, ?string $eventName = null): object |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return array<object> |
||
| 30 | */ |
||
| 31 | public function getEvents(): array |
||
| 36 |