mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +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;
|
|
}
|
|
}
|