Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class HostBasedEnvResolvingStrategy implements EnvResolvingStrategyInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var HostDetectorInterface |
||
15 | */ |
||
16 | private $hostDetector; |
||
17 | |||
18 | /** |
||
19 | * @var FormatterInterface $envNameFormatter |
||
20 | */ |
||
21 | private $envNameFormatter; |
||
22 | |||
23 | 15 | public function __construct(HostDetectorInterface $hostDetector, FormatterInterface $envNameFormatter) |
|
27 | 15 | } |
|
28 | |||
29 | /** |
||
30 | * @param string $envName |
||
31 | * @throws FormatterException |
||
32 | * @return string |
||
33 | */ |
||
34 | 20 | public function getEnv(string $envName): string |
|
42 |