public function withQueryParams(array $query)
    {
        $params = $this->getQueryParams();

        foreach ($query as $key => $value) {
            $params[$key] = $value;
        }

        $this->queryParams = $params;
    }