src/Request.php
protected function setParameters($newParameters)
    {
        if (is_scalar($newParameters)) {
            if (!is_string($newParameters)) {
                throw new \Exception('newParameters can not be scalar');
            }
            $newParameters = $this->stringToArray($newParameters);
        }
        foreach ($newParameters as $field => $value) {
            $this->setParameter($field, $value);
        }
        return $this;
    }
protected function setParameters($newParameters)
    {
        if (is_scalar($newParameters)) {
            if (!is_string($newParameters)) {
                throw new \Exception('newParameters can not be scalar');
            }
            $newParameters = $this->stringToArray($newParameters);
        }
        foreach ($newParameters as $field => $value) {
            $this->setParameter($field, $value);
        }
        return $this;
    }
Add a set of parameters to the Request.

This method is for internal use only. It allows setting of key => value
parameters, including for string objects (assuming a Reader has been set
up for them).

@param array|object $newParameters
@throws \Exception
@returns $this