Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class Config { |
||
20 | |||
21 | |||
22 | /** |
||
23 | * Holds the current config object. |
||
24 | * |
||
25 | * @var App_Config|null |
||
26 | */ |
||
27 | protected static ?App_Config $config_cache = null; |
||
28 | |||
29 | /** |
||
30 | * Calls the static method from the config. |
||
31 | * Sets the config cache on first call. |
||
32 | * |
||
33 | * @param string $method |
||
34 | * @param array<int, mixed> $params |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public static function __callStatic( $method, $params ) { |
||
46 |