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