Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class LogLevelConfigurator |
||
11 | { |
||
12 | /** @var array */ |
||
13 | private $levels = [ |
||
14 | 'DEBUG' => OutputInterface::VERBOSITY_DEBUG, |
||
15 | 'INFO' => OutputInterface::VERBOSITY_VERY_VERBOSE, |
||
16 | 'WARN' => OutputInterface::VERBOSITY_VERBOSE, |
||
17 | 'ERROR' => OutputInterface::VERBOSITY_NORMAL, |
||
18 | ]; |
||
19 | |||
20 | /** @var OutputInterface */ |
||
21 | private $output; |
||
22 | |||
23 | /** |
||
24 | * Log constructor. |
||
25 | * @param OutputInterface $output |
||
26 | */ |
||
27 | public function __construct(OutputInterface $output) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @throws LogLevelException |
||
34 | * @return void |
||
35 | */ |
||
36 | public function configureLogLevel(): void |
||
42 |