1 | <?php |
||
19 | trait Loggable |
||
20 | { |
||
21 | /** |
||
22 | * @var null|LoggerInterface |
||
23 | */ |
||
24 | protected $logger; |
||
25 | |||
26 | /** |
||
27 | * @return null|LoggerInterface |
||
28 | */ |
||
29 | public function getLogger(): ?LoggerInterface |
||
33 | |||
34 | /** |
||
35 | * @param string $message |
||
36 | */ |
||
37 | public function info(string $message): void |
||
43 | |||
44 | /** |
||
45 | * @param string $message |
||
46 | */ |
||
47 | public function error(string $message): void |
||
53 | } |
||
54 |