Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | trait LoggerTrait |
||
20 | { |
||
21 | /** |
||
22 | * A PSR-3 logger. |
||
23 | * |
||
24 | * @var LoggerInterface |
||
25 | */ |
||
26 | protected $logger; |
||
|
|||
27 | |||
28 | /** |
||
29 | * Sets the PSR-3 logger. |
||
30 | * |
||
31 | * @param LoggerInterface $logger A PSR-3 compatible logger. |
||
32 | */ |
||
33 | 1 | public function setLogger(LoggerInterface $logger): self |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * Retrieves the PSR-3 logger. |
||
49 | */ |
||
50 | 1 | public function getLogger(): LoggerInterface |
|
55 |