src/Request.php
protected function setParameter($name, $value)
    {
        if (!is_scalar($name)) {
            throw new \Exception('Parameter name must be scalar');
        }
        $this->parameters[$name] = $value;
        return $this;
    }
protected function setParameter($name, $value)
    {
        if (!is_scalar($name)) {
            throw new \Exception('Parameter name must be scalar');
        }
        $this->parameters[$name] = $value;
        return $this;
    }
Add a parameter

Adds a single parameter, checking the parameter name is scalar.

@param $name
@param $value
@return bool Returns true of value was set
@throws \Exception