Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class LoggerFactory extends AbstractFactory |
||
19 | { |
||
20 | /** |
||
21 | * @return \Xervice\Logger\Business\Provider\LogProviderInterface |
||
22 | */ |
||
23 | 1 | public function createLogProvider(): LogProviderInterface |
|
24 | { |
||
25 | 1 | return new LogProvider( |
|
26 | 1 | $this->getLogHandlerCollection() |
|
27 | ); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return \Xervice\Logger\Business\Writer\FileWriterInterface |
||
32 | */ |
||
33 | 1 | public function createFileWriter(): FileWriterInterface |
|
38 | ); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return \Xervice\Logger\Business\Handler\HandlerCollection |
||
43 | */ |
||
44 | 1 | public function getLogHandlerCollection(): HandlerCollection |
|
47 | } |
||
48 | } |