Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class DeamonLoggerExtraContext |
||
6 | { |
||
7 | 4 | public function __construct( |
|
8 | private ?string $applicationName, |
||
9 | private ?string $locale = null, |
||
10 | private ?string $applicationVersion = null) |
||
11 | { |
||
12 | 4 | if(null !== $applicationVersion){ |
|
13 | $this->applicationVersion = trim($this->applicationVersion); |
||
1 ignored issue
–
show
|
|||
14 | } |
||
15 | } |
||
16 | |||
17 | 2 | public function getLocale(): ?string |
|
20 | } |
||
21 | |||
22 | 2 | public function getApplicationName(): ?string |
|
23 | { |
||
24 | 2 | return $this->applicationName; |
|
25 | } |
||
26 | |||
27 | public function getApplicationVersion(): ?string |
||
30 | } |
||
31 | } |
||
32 |