Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
12 | class Envs extends Config |
||
13 | { |
||
14 | 1 | protected function writeFile(string $path, array $data): void |
|
15 | { |
||
16 | 1 | $envs = Helper::exportVar($data); |
|
17 | |||
18 | $content = <<<PHP |
||
19 | 1 | <?php |
|
20 | 1 | return {$envs}; |
|
21 | PHP; |
||
22 | |||
23 | 1 | $this->contentWriter->write($path, $content . PHP_EOL); |
|
24 | 1 | } |
|
25 | |||
26 | protected function envsRequired(): bool |
||
27 | { |
||
28 | return false; |
||
29 | } |
||
30 | |||
31 | protected function constantsRequired(): bool |
||
34 | } |
||
35 | |||
36 | protected function paramsRequired(): bool |
||
39 | } |
||
40 | } |
||
41 |