/** * @return Page The root page */ public static function getRootPage() { if (self::$ROOT_PAGE === null) { self::$ROOT_PAGE = self::retrieveRoot(); if (self::$ROOT_PAGE === null) { throw new Exception('Error in PagePeer::getRootPage(): there is no root page'); } } return self::$ROOT_PAGE; }