public static function getInstance() { if (self::$instance == null) { self::$instance = new Session(); } return self::$instance; }
/** * Gets an instance of the Session * @return Session|null */ public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }