Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare( strict_types=1 ); |
||
11 | class SimpleLogger extends AbstractLogger { |
||
12 | /** @var int */ |
||
13 | private $minLevel; |
||
14 | |||
15 | /** |
||
16 | * @param string $minlevel |
||
17 | */ |
||
18 | public function __construct( $minlevel = LogLevel::INFO ) { |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Translate a LogLevel constant to an integer |
||
24 | * |
||
25 | * @param string $level |
||
26 | * @return int |
||
27 | */ |
||
28 | private function levelToInt( string $level ) : int { |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | * @suppress PhanUnusedPublicMethodParameter |
||
46 | */ |
||
47 | public function log( $level, $message, array $context = [] ) { |
||
53 |