public function addQuery($key, $value = null)
    {
        //if it's an array
        if (is_array($key)) {
            //warning this overwrites existing headers
            $this->query = $key;
            return $this;
        }

        //else it should be key value
        $this->query[$key] =  $value;
        return $this;
    }
public function addQuery($key, $value = null)
    {
        //if it's an array
        if (is_array($key)) {
            //warning this overwrites existing headers
            $this->query = $key;
            return $this;
        }

        //else it should be key value
        $this->query[$key] =  $value;
        return $this;
    }
public function addQuery ( $ key , $ value = null ) { //if it's an array if ( is_array ( $ key ) ) { //warning this overwrites existing headers $ this -> query = $ key ; return $ this ; } //else it should be key value $ this -> query [ $ key ] = $ value ; return $ this ; }
Add query into this request

@param string|array $key
@param string|null  $value

@return Rest
Add query into this request