LoggerAwareTrait.php 351 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Psr\Log;
  3. /**
  4. * Basic Implementation of LoggerAwareInterface.
  5. */
  6. trait LoggerAwareTrait
  7. {
  8. /** @var LoggerInterface */
  9. protected $logger;
  10. /**
  11. * Sets a logger.
  12. *
  13. * @param LoggerInterface $logger
  14. */
  15. public function setLogger(LoggerInterface $logger)
  16. {
  17. $this->logger = $logger;
  18. }
  19. }