OpenXE/classes/Components/Logger/LoggerAwareTrait.php

24 lines
401 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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;
}
}