| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Factory |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array $config |
||
| 11 | */ |
||
| 12 | protected $config = []; |
||
| 13 | |||
| 14 | public function __construct(array $config) |
||
| 15 | { |
||
| 16 | $this->config = $config['logger'] ?? []; |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Creates a new file logger. |
||
| 21 | * |
||
| 22 | * @return FileLogger |
||
| 23 | * @throws LoggerException |
||
| 24 | */ |
||
| 25 | public function makeFileLogger(): FileLogger |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Creates a new null logger. |
||
| 39 | *s |
||
| 40 | * @return NullLogger |
||
| 41 | */ |
||
| 42 | public function makeNullLogger(): NullLogger |
||
| 47 |