/** * @return Session */ public static function singleton() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }