config = $config; foreach($base_config as $key => $val) { $this->config[$key] = $val; } } /** * Getter for config values * * @param string $key * @return mixed */ public function __get($key) { if (isset($this->config[$key])) { return $this->config[$key]; } return NULL; } } // End of config.php