public function setQueryVariable(string $key, string $value)
    {
        if (empty($value))
            unset($this->query[$key]);
        else
            $this->query[$key] = $value;
        return $this;
    }
public function setQueryVariable(string $key, string $value)
    {
        if (empty($value))
            unset($this->query[$key]);
        else
            $this->query[$key] = $value;
        return $this;
    }
public function setQueryVariable ( string $ key , string $ value ) { if ( empty ( $ value ) ) unset ( $ this -> query [ $ key ] ) ; else $ this -> query [ $ key ] = $ value ; return $ this ; }
Set or update a query variable
@param string $key The name of the query parameter
@param string $value The value for the parameter
@return URL Provides fluent interface
Set or update a query variable