for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oqq\Minc\Log\Handler;
use Oqq\Minc\Log\Record;
/**
* @author Eric Braun <[email protected]>
*/
class ArrayHandler extends AbstractHandler
{
/** @var Record[] */
protected $records = [];
* @return Record[]
public function getRecords()
return $this->records;
}
* @return \Generator
public function getFormattedMessages()
foreach ($this->records as $record) {
yield $this->getFormattedMessage($record);
* @inheritdoc
protected function write(Record $record)
$this->records[] = $record;