Lines Matching refs:key
275 * @param string $key
280 public function addConfig($key, $value)
282 $this->_params['config'][$key] = $value;
288 * @param string $key
292 public function hasConfig($key)
296 return isset($config[$key]);
300 * Returns a specific config key or the whole
303 * @param string $key Config key
309 public function getConfig($key = '')
312 if (empty($key)) {
316 if (!\array_key_exists($key, $config)) {
317 throw new InvalidException('Config key is not set: '.$key);
320 return $config[$key];