Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Constants extends Config |
||
9 | { |
||
10 | protected function loadFile($path): array |
||
11 | { |
||
12 | parent::loadFile($path); |
||
13 | if (pathinfo($path, PATHINFO_EXTENSION) !== 'php') { |
||
14 | return []; |
||
15 | } |
||
16 | |||
17 | return [$path]; |
||
18 | } |
||
19 | |||
20 | public function buildRequires(): string |
||
21 | { |
||
22 | $res = []; |
||
23 | foreach ($this->values as $path) { |
||
24 | $res[] = "require_once '$path';"; |
||
25 | } |
||
26 | |||
27 | return implode("\n", $res); |
||
28 | } |
||
29 | |||
30 | public function constantsRequired(): bool |
||
33 | } |
||
34 | |||
35 | public function paramsRequired(): bool |
||
38 | } |
||
39 | } |
||
40 |