public function withQueryParam($key, $value)
    {
        $params = $this->getQueryParams();
        $params[$key] = $value;
        $this->queryParams = $params;
    }
public function withQueryParam($key, $value)
    {
        $params = $this->getQueryParams();
        $params[$key] = $value;
        $this->queryParams = $params;
    }
public function withQueryParam ( $ key , $ value ) { $ params = $ this -> getQueryParams ( ) ; $ params [ $ key ] = $ value ; $ this -> queryParams = $ params ; }
Set a query param.

@param string $key
@param string $value
Set a query param .