Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | 127 | final public function __construct(LoggerInterface $logger = null) |
|
23 | { |
||
24 | 127 | if ($logger === null) { |
|
25 | 127 | $logger = new Logger(); |
|
26 | } |
||
27 | |||
28 | // Insert name of class within the logger |
||
29 | 127 | $this->logger = $logger->withName(str_replace('unreal4u\\MQTT\\', '', \get_class($this))); |
|
|
|||
30 | |||
31 | 127 | $this->initializeObject(); |
|
32 | 127 | } |
|
44 |