| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Config |
||
| 8 | { |
||
| 9 | protected static $config = []; |
||
| 10 | public static $err = ''; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $filename |
||
| 14 | * @param string $prefix [optional] |
||
| 15 | * If prefix is used, all config options loaded will be indexed |
||
| 16 | * in dot notation ie prefix.option |
||
| 17 | */ |
||
| 18 | public static function load($filename, $prefix = '') { |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the value of a config var |
||
| 34 | * |
||
| 35 | * @param string $var_name |
||
| 36 | * @param mixed $default |
||
| 37 | * |
||
| 38 | * @return mixed|null |
||
| 39 | */ |
||
| 40 | public static function val($var_name, $default = null) { |
||
| 42 | } |
||
| 43 | } |