/** * Returns the cached bundle entry reader. * * @return BundleEntryReaderInterface The bundle entry reader */ private static function getEntryReader() { if (null === self::$entryReader) { self::$entryReader = new BundleEntryReader(new BufferedBundleReader(new JsonBundleReader(), self::BUFFER_SIZE)); } return self::$entryReader; }
/** * Resets the internal state. */ private static function reset() { self::$currencyBundle = null; self::$languageBundle = null; self::$localeBundle = null; self::$regionBundle = null; self::$icuVersion = false; self::$icuDataVersion = false; self::$entryReader = null; }
/** * Returns a resource bundle reader for .php resource bundle files. * * @return ResourceBundle\Reader\StructuredBundleReaderInterface The resource reader. */ private static function getBundleReader() { if (null === self::$bundleReader) { self::$bundleReader = new StructuredBundleReader(new BufferedBundleReader(IcuData::getBundleReader(), self::BUFFER_SIZE)); } return self::$bundleReader; }