| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class ArrayLogger implements LoggerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var EventInterface[] events log |
||
| 15 | */ |
||
| 16 | protected array $log = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritDoc} |
||
| 20 | */ |
||
| 21 | 10 | public function append(EventInterface $event): void |
|
| 22 | { |
||
| 23 | 10 | $this->log[] = $event; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | 2 | public function getLog(): array |
|
| 32 | } |
||
| 33 | } |
||
| 34 |