Lines Matching defs:key
49 * Sets (overwrites) the value at the given key.
51 * @param string $key Key to set
56 public function setParam($key, $value)
58 $this->_params[$key] = $value;
82 * @param string $key Param key
87 public function addParam($key, $value, ?string $subKey = null)
90 $this->_params[$key][$subKey] = $value;
92 $this->_params[$key][] = $value;
101 * @param string $key Key to return
103 * @throws InvalidException If requested key is not set
107 public function getParam($key)
109 if (!$this->hasParam($key)) {
110 throw new InvalidException('Param '.$key.' does not exist');
113 return $this->_params[$key];
119 * @param string $key Key to test
123 public function hasParam($key)
125 return isset($this->_params[$key]);
158 foreach ($array as $key => $value) {
160 $arr[$value instanceof NameableInterface ? $value->getName() : $key] = $value->toArray();
162 $arr[$key] = $this->_convertArrayable($value);
164 $arr[$key] = $value;
186 * @param string $key
191 protected function _setRawParam($key, $value)
193 $this->_rawParams[$key] = $value;