No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoggerAwareTrait.php 402B

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