Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class EnvProviderDecorator |
||
11 | { |
||
12 | /** |
||
13 | * @var EnvResolvingStrategyInterface|null $resolvingStrategy |
||
14 | */ |
||
15 | private static $resolvingStrategy; |
||
16 | |||
17 | 1 | public static function init(EnvResolvingStrategyInterface $resolvingStrategy): void |
|
20 | 1 | } |
|
21 | |||
22 | 2 | public static function resetStrategy(): void |
|
23 | { |
||
24 | 2 | self::$resolvingStrategy = null; |
|
25 | 2 | } |
|
26 | |||
27 | /** |
||
28 | * @param string $envName |
||
29 | * @throws EnvProviderDecoratorException |
||
30 | * @return string |
||
31 | */ |
||
32 | 2 | public static function getEnv(string $envName): string |
|
39 | } |
||
40 | } |
||
41 |