/** * Get the singleton instance of this class */ public static function getInstance() { if (!self::$instance instanceof LocaleUtil) { self::$instance = new LocaleUtil(); } return self::$instance; }
/** * Get the singleton instance of this class */ public static function getInstance() { if (!is_a(self::$instance, 'LocaleUtil')) { self::$instance = new LocaleUtil(); } return self::$instance; }