protected function setQueryParam($param, $value)
    {
        if ( !in_array($param, $this->queryWhitelist) ) {
            throw new \InvalidArgumentException(sprintf('The query parameter `%s` was not recognized.', $param));
        }

        $this->parameters->set($param, $value);
    }
protected function setQueryParam($param, $value)
    {
        if ( !in_array($param, $this->queryWhitelist) ) {
            throw new \InvalidArgumentException(sprintf('The query parameter `%s` was not recognized.', $param));
        }

        $this->parameters->set($param, $value);
    }
protected function setQueryParam ( $ param , $ value ) { if ( ! in_array ( $ param , $ this -> queryWhitelist ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The query parameter `%s` was not recognized.' , $ param ) ) ; } $ this -> parameters -> set ( $ param , $ value ) ; }
Set a single value into the query string.
A whitelist can be provided to only accept specific keys.

@param string $param Parameter name
@param mixed  $value Parameter Value

@return void
Set a single value into the query string . A whitelist can be provided to only accept specific keys .