/** * @throws ExceptionSitemap * @returns SiteMapA */ public function getSiteMap() { if (SiteMapA::isValid($this->oSiteMap)) { return $this->oSiteMap; } else { throw new ExceptionSitemap('No sitemap loaded.'); } }