/** * @return string|null */ public function restoreUrl() { self::$url = null; if (isset($_SESSION[self::KEY_URL])) { self::$url = $_SESSION[self::KEY_URL]; unset($_SESSION[self::KEY_URL]); } return self::$url; }