/** * Get URI * * @param $real boolean if method should return real URI, otherwise it returns requested URI * @return string */ public function getURI($real = false) { if ($real) { return $this->resource->getEffectiveURL(); } return $this->URI; }