Total Complexity | 7 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class ConfigHelper |
||
10 | { |
||
11 | /** |
||
12 | * @var array<string, mixed> |
||
13 | */ |
||
14 | public array $config; |
||
15 | |||
16 | public function __construct() |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Handle config and return value |
||
23 | * |
||
24 | * @param string $string |
||
25 | * |
||
26 | * @return array|mixed |
||
27 | */ |
||
28 | public function execConfig(string $string): mixed |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Return template data |
||
45 | * |
||
46 | * @param string $partialPath |
||
47 | * @param array $data |
||
48 | * |
||
49 | * @return bool|string |
||
50 | */ |
||
51 | public function getTemplateData(string $partialPath, array $data = []): bool|string |
||
75 |