public function addQuery($param, $value)
    {
        if (!isset($this->options[GuzzleRequestOptions::QUERY])) {
            $this->options[GuzzleRequestOptions::QUERY] = [];
        }

        if (!is_array($this->options[GuzzleRequestOptions::QUERY])) {
            throw  new \LogicException('The query has been set as string and can`t be modified');
        }

        $this->options[GuzzleRequestOptions::QUERY][$param] = $value;

        return $this;
    }
public function addQuery($param, $value)
    {
        if (!isset($this->options[GuzzleRequestOptions::QUERY])) {
            $this->options[GuzzleRequestOptions::QUERY] = [];
        }

        if (!is_array($this->options[GuzzleRequestOptions::QUERY])) {
            throw  new \LogicException('The query has been set as string and can`t be modified');
        }

        $this->options[GuzzleRequestOptions::QUERY][$param] = $value;

        return $this;
    }
public function addQuery ( $ param , $ value ) { if ( ! isset ( $ this -> options [ GuzzleRequestOptions :: QUERY ] ) ) { $ this -> options [ GuzzleRequestOptions :: QUERY ] = [ ] ; } if ( ! is_array ( $ this -> options [ GuzzleRequestOptions :: QUERY ] ) ) { throw new \ LogicException ( 'The query has been set as string and can`t be modified' ) ; } $ this -> options [ GuzzleRequestOptions :: QUERY ] [ $ param ] = $ value ; return $ this ; }
Add Query string parameter

@param string $param
@param mixed  $value

@return $this
Add Query string parameter