1 | <?php |
||
15 | trait LoggerAwareTrait |
||
16 | { |
||
17 | /** |
||
18 | * @var LoggerInterface |
||
19 | */ |
||
20 | private $logger; |
||
21 | |||
22 | /** |
||
23 | * Method to inject PSR logger into this class. |
||
24 | * |
||
25 | * @param LoggerInterface $logger |
||
26 | */ |
||
27 | public function setLogger(LoggerInterface $logger) |
||
31 | |||
32 | /** |
||
33 | * Get the logger instance associated with this instance. |
||
34 | * |
||
35 | * @return LoggerInterface |
||
36 | */ |
||
37 | protected function getLogger() |
||
50 | } |
||
51 |