Newer
Older
framework / system / ThirdParty / PSR / Log / LoggerAwareTrait.php
@Jim Parry Jim Parry on 1 Dec 2018 351 bytes Release 4.0.0-alpha.3
<?php

namespace Psr\Log;

/**
 * Basic Implementation of LoggerAwareInterface.
 */
trait LoggerAwareTrait
{
    /** @var LoggerInterface */
    protected $logger;

    /**
     * Sets a logger.
     * 
     * @param LoggerInterface $logger
     */
    public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
}