Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | final class GacelaConfigItem |
||
11 | { |
||
12 | private string $path; |
||
13 | private string $pathLocal; |
||
14 | private ConfigReaderInterface $reader; |
||
15 | |||
16 | 22 | public function __construct( |
|
17 | string $path, |
||
18 | string $pathLocal = '', |
||
19 | ?ConfigReaderInterface $reader = null |
||
20 | ) { |
||
21 | 22 | $this->path = $path; |
|
22 | 22 | $this->pathLocal = $pathLocal; |
|
23 | 22 | $this->reader = $reader ?? new PhpConfigReader(); |
|
24 | } |
||
25 | |||
26 | 10 | public function path(): string |
|
27 | { |
||
28 | 10 | return $this->path; |
|
29 | } |
||
30 | |||
31 | 10 | public function pathLocal(): string |
|
32 | { |
||
33 | 10 | return $this->pathLocal; |
|
34 | } |
||
35 | |||
36 | 12 | public function reader(): ConfigReaderInterface |
|
39 | } |
||
40 | } |
||
41 |