OpenXE/classes/Components/Logger/LoggerAwareTrait.php
2021-05-21 08:49:41 +02:00

24 lines
401 B
PHP

<?php
declare(strict_types=1);
namespace Xentral\Components\Logger;
trait LoggerAwareTrait
{
/** @var LoggerInterface $logger */
protected $logger;
/**
* Sets a logger instance on the object.
*
* @param LoggerInterface $logger
*
* @return void
*/
public function setLogger(LoggerInterface $logger): void
{
$this->logger = $logger;
}
}