mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 22:50:29 +01:00
24 lines
401 B
PHP
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;
|
|
}
|
|
}
|