| 1 | <?php |
||
| 5 | class Config |
||
| 6 | { |
||
| 7 | private $config; |
||
| 8 | |||
| 9 | 57 | public function __construct(array $config = []) |
|
| 13 | |||
| 14 | /** |
||
| 15 | * Build a config array. Merge user defined config with our default config. |
||
| 16 | * |
||
| 17 | * @param array $config User defined config |
||
| 18 | * |
||
| 19 | * @return array New configuration array |
||
| 20 | */ |
||
| 21 | 57 | private function buildConfig(array $config = []) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Get the config variable |
||
| 35 | * |
||
| 36 | * @param string $val Variable name |
||
| 37 | * |
||
| 38 | * @return mixed Variable value |
||
| 39 | */ |
||
| 40 | 57 | public function get($val) |
|
| 44 | } |