public function toArray($onlyFirst = false)
	{
		$r = [];
		foreach ($this->params as $key => $values) {
			$r[$key] = $onlyFirst ? $values[0] : $values;
		}
		return $r;
	}
public function toArray($onlyFirst = false)
	{
		$r = [];
		foreach ($this->params as $key => $values) {
			$r[$key] = $onlyFirst ? $values[0] : $values;
		}
		return $r;
	}
public function toArray ( $ onlyFirst = false ) { $ r = [ ] ; foreach ( $ this -> params as $ key => $ values ) { $ r [ $ key ] = $ onlyFirst ? $ values [ 0 ] : $ values ; } return $ r ; }
Get all parameters as an associative array with the parameter keys as array keys.
Returns either only the first values of the parameters, or all values of the parameters.

@param boolean $onlyFirst
@return array
Get all parameters as an associative array with the parameter keys as array keys . Returns either only the first values of the parameters or all values of the parameters .