public function setArray($key, array $values)
	{
		$this->validateKey($key);
		if (empty($values)) {
			throw new \InvalidArgumentException("Missing value.");
		}
		foreach ($values as $v) {
			$this->validateValue($v);
		}
		$this->params[$key] = [];
		foreach ($values as $v) {
			$this->params[$key][] = $v;
		}
		return $this;
	}
public function setArray($key, array $values)
	{
		$this->validateKey($key);
		if (empty($values)) {
			throw new \InvalidArgumentException("Missing value.");
		}
		foreach ($values as $v) {
			$this->validateValue($v);
		}
		$this->params[$key] = [];
		foreach ($values as $v) {
			$this->params[$key][] = $v;
		}
		return $this;
	}
public function setArray ( $ key , array $ values ) { $ this -> validateKey ( $ key ) ; if ( empty ( $ values ) ) { throw new \ InvalidArgumentException ( "Missing value." ) ; } foreach ( $ values as $ v ) { $ this -> validateValue ( $ v ) ; } $ this -> params [ $ key ] = [ ] ; foreach ( $ values as $ v ) { $ this -> params [ $ key ] [ ] = $ v ; } return $ this ; }
Sets several values for the given parameter key.

@param string $key
@param array $values
@throws \InvalidArgumentException If the key is empty, the key is not a string, no values are given or a value is not a string.
@return self
Sets several values for the given parameter key .