config = json_decode($config, true); } /** * @param $key * * @return value or key or null */ public function getValue($key) { $value = null; if (array_key_exists($key, $this->config)) { $value = $this->config[$key]; } return $value; } }