Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
30 | 16 | public function __construct(LoggerInterface $logger, array $context, string $prefix = null) |
|
31 | { |
||
32 | 16 | $this->logger = $logger; |
|
33 | 16 | $this->context = $context; |
|
34 | |||
35 | 16 | if ($prefix !== null) { |
|
36 | 15 | $prefix = '[' . $prefix . '] '; |
|
37 | } |
||
38 | 16 | $this->prefix = $prefix; |
|
39 | 16 | } |
|
40 | |||
46 |