public function getQueryParameter($parameter) { if (!$this->hasQueryParameter($parameter)) { throw new \DomainException("Invalid query parameter: `{$parameter}` does not exist"); } return $this->queryParameters[$parameter]; }