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