source: vendor/psr/log/src/LoggerAwareTrait.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 347 bytes
RevLine 
[e3d4e0a]1<?php
2
3namespace Psr\Log;
4
5/**
6 * Basic Implementation of LoggerAwareInterface.
7 */
8trait LoggerAwareTrait
9{
10 /**
11 * The logger instance.
12 */
13 protected ?LoggerInterface $logger = null;
14
15 /**
16 * Sets a logger.
17 */
18 public function setLogger(LoggerInterface $logger): void
19 {
20 $this->logger = $logger;
21 }
22}
Note: See TracBrowser for help on using the repository browser.