for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smoren\EventRouter\Loggers;
use Smoren\EventRouter\Interfaces\EventInterface;
use Smoren\EventRouter\Interfaces\LoggerInterface;
/**
* ArrayLogger class
*/
class ArrayLogger implements LoggerInterface
{
* @var EventInterface[] events log
protected array $log = [];
* {@inheritDoc}
public function append(EventInterface $event): void
$this->log[] = $event;
}
public function getLog(): array
return $this->log;