Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class PathResolver implements PathResolverInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $originalPath; |
||
16 | |||
17 | /** |
||
18 | * @var FormatterInterface|null |
||
19 | */ |
||
20 | private $formatter; |
||
21 | |||
22 | 10 | public function __construct(string $originalPath, FormatterInterface $formatter = null) |
|
23 | { |
||
24 | 10 | $this->originalPath = trim($originalPath); |
|
25 | 10 | $this->formatter = $formatter; |
|
26 | 10 | } |
|
27 | |||
28 | 22 | public function resolvePathToEnvFile(HostId $hostId): string |
|
31 | } |
||
32 | } |
||
33 |