Total Complexity | 8 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class Environment implements Interfaces\Environment |
||
10 | { |
||
11 | private EnvironmentType $environmentType; |
||
12 | |||
13 | private function __construct(EnvironmentType $environmentType) |
||
14 | { |
||
15 | $this->environmentType = $environmentType; |
||
16 | } |
||
17 | |||
18 | public static function create(EnvironmentType $environmentType, Interfaces\Marshaller $marshaller = null): self |
||
25 | } |
||
26 | |||
27 | public static function createWithEnvFile(EnvironmentType $environmentType, string $fullPath): self |
||
28 | { |
||
29 | return self::create($environmentType, Marshallers\EnvFile::createFromPath($fullPath)); |
||
30 | } |
||
31 | |||
32 | public function is(EnvironmentType $environment): bool |
||
35 | } |
||
36 | |||
37 | public function has(string $key): bool |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @psalm-suppress PossiblyFalseArgument |
||
44 | */ |
||
45 | public function get(string $key): Interfaces\Caster |
||
54 |