Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class ConfigHelper |
||
12 | { |
||
13 | public const CONFIG_NAMESPACE = 'hello'; |
||
14 | |||
15 | /** |
||
16 | * @var null|Config |
||
17 | */ |
||
18 | protected static $config = null; |
||
19 | |||
20 | /** |
||
21 | * @param string $key |
||
22 | * @param null $default |
||
|
|||
23 | * @return mixed|\Nip\Config\Config |
||
24 | */ |
||
25 | 4 | public static function get(string $key, $default = null) |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param Config $object |
||
42 | */ |
||
43 | 4 | public static function setConfig($object) |
|
48 |