aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/psr/log/src/LoggerAwareTrait.php
blob: 5f1553a4c810fd30d596b2f79b2bc1036dc91ace (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                


                           
                                
       
                                              


                     
      

                                     
                                                      



                                
<?php

namespace Psr\Log;

/**
 * Basic Implementation of LoggerAwareInterface.
 */
trait LoggerAwareTrait
{
    /**
     * The logger instance.
     *
     * @var LoggerInterface|null
     */
    protected ?LoggerInterface $logger = null;

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