Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | trait LoggerTrait |
||
24 | { |
||
25 | /** |
||
26 | * The logger to use |
||
27 | * |
||
28 | * @var LoggerInterface |
||
29 | */ |
||
30 | protected $logger; |
||
31 | |||
32 | /** |
||
33 | * Get the logger |
||
34 | * |
||
35 | * @return LoggerInterface |
||
36 | * @throws NotFoundExceptionInterface |
||
37 | */ |
||
38 | public function getLogger() |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Set the logger if needed |
||
49 | * |
||
50 | * @param LoggerInterface $logger |
||
51 | */ |
||
52 | public function setLogger($logger): void |
||
57 |