for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* @author Serkin Akexander <[email protected]>
*/
namespace Volan\Traits;
use Psr\Log\LoggerInterface;
use Volan\InMemoryLogger;
trait LoggerTrait
{
/**
* @var \Psr\Log\LoggerInterface
private $logger;
public function setLogger(LoggerInterface $logger)
$this->logger = $logger;
}
* Gets current logger
*
* @return InMemoryLogger
private function getLogger()
return $this->logger;