Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php /** MicroLoggerDriverInterface */ |
||
38 | public function __construct(array $params = []) |
||
39 | { |
||
40 | $levels = explode(',', str_replace(' ', '', strtolower($params['levels']))); |
||
41 | |||
42 | foreach ($levels AS $level) { |
||
43 | if (in_array($level, Logger::$supportedLevels, true)) { |
||
44 | $this->supportedLevels[] = $level; |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 | |||
63 |