public function getUri() { $uri = $this->getPath(); if (strlen($this->getQuery())) { $uri .= '?' . $this->getQuery(); } return $uri; }