| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class RecordOnlyEventDispatcher implements EventDispatcher |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Event[] |
||
| 14 | */ |
||
| 15 | private array $history = []; |
||
| 16 | |||
| 17 | 7 | public function dispatch(Event $event): void |
|
| 18 | { |
||
| 19 | 7 | $this->history[] = $event; |
|
| 20 | 7 | } |
|
| 21 | |||
| 22 | 1 | public function history(): array |
|
| 23 | { |
||
| 24 | 1 | return $this->history; |
|
| 25 | } |
||
| 26 | |||
| 27 | public function flush(): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |