Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class DevNullLogger implements LoggerInterface |
||
11 | { |
||
12 | use LoggerTrait; |
||
13 | |||
14 | /** |
||
15 | * @inheritDoc |
||
16 | */ |
||
17 | public function log($level, $message, array $context = []) |
||
18 | { |
||
19 | // do nothing!! |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Clear messages list |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function clear() : void |
||
29 | // do nothing!! |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Return if messages exist or not |
||
34 | * |
||
35 | * @return boolean |
||
36 | */ |
||
37 | public function hasMessages() : bool |
||
38 | { |
||
39 | return false; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Return log messages |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getMessages() : array |
||
50 | } |
||
51 | } |
||
52 |