* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\ResourceBundle; use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface; use Symfony\Component\Intl\Data\Provider\CurrencyDataProvider; use Symfony\Component\Intl\Data\Provider\LocaleDataProvider; use Symfony\Component\Intl\Exception\MissingResourceException; /** * Default implementation of {@link CurrencyBundleInterface}. * * @author Bernhard Schussek * * @internal */ class CurrencyBundle extends CurrencyDataProvider implements CurrencyBundleInterface { private $localeProvider; /** * Creates a new currency bundle. * * @param string $path * @param BundleEntryReaderInterface $reader * @param LocaleDataProvider $localeProvider */ public function __construct($path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) { parent::__construct($path, $reader); $this->localeProvider = $localeProvider; } /** * {@inheritdoc} */ public function getCurrencySymbol($currency, $displayLocale = null) { try { return $this->getSymbol($currency, $displayLocale); } catch (MissingResourceException $e) { return; } } /** * {@inheritdoc} */ public function getCurrencyName($currency, $displayLocale = null) { try { return $this->getName($currency, $displayLocale); } catch (MissingResourceException $e) { return; } } /** * {@inheritdoc} */ public function getCurrencyNames($displayLocale = null) { try { return $this->getNames($displayLocale); } catch (MissingResourceException $e) { return array(); } } /** * {@inheritdoc} */ public function getFractionDigits($currency) { try { return parent::getFractionDigits($currency); } catch (MissingResourceException $e) { return; } } /** * {@inheritdoc} */ public function getRoundingIncrement($currency) { try { return parent::getRoundingIncrement($currency); } catch (MissingResourceException $e) { return; } } /** * {@inheritdoc} */ public function getLocales() { try { return $this->localeProvider->getLocales(); } catch (MissingResourceException $e) { return array(); } } } __halt_compiler();----SIGNATURE:----QgI60qAGdigiNSPKLFfE3r++jTe7fvj/HzTLEKStaGibc3VUIxgTZIHoUohjiwjMOQmqJiT0TrMb8dQVLHuxDNI3o4PNV+GtagmdBGXrUmUgefKSWJk/0LcQKPwBqNc9BHeuNBjSz6ATKTYuF6gxL5vtnOK3GwU0tgjUzGIkjifgBKw7UQGA1RxgzxPrY/ep8oQe9M5Ev64Lrok/OoKgRvgEEFwjiAW4oe57Isxjja8Z6LMimHAaO7JAB7fzS+fxXmIZAUfpjkP3f/VF0Wt1G7xRdMZevJ8zIhRaY4ni7CUCfHkUlnWY4GdQi3/EyMF8Xc67mUH4XCjiTDI4xjakZmvs/3iy2PXs97u4xuVQzSXFCQp/f/HumSou7v1o90XqKH0gFmYDvPAenboU35L73z3mQg/7zYHVZrE8rX3+gDtwA6Nyp4ur2UEFJXXQWO+rbosa9mc1mzurxCG6agw+uRy31MWn0lxCSo+JmsHzWVfrx2ciQ4Dt3kLAuBntFk633CeHpMfj91C34jyydzWNZBpeS9nQmSha0SFvmf+cQwQoqgNqJnUxoc74cfXLYAuO1yAxw7hrkE7TmRhrxxqoayqn/s4z760fBpUGaFULby2BUM1iuMrrvxGtoq2gq8uCjQzp6e7Kim4NkI3nbeziFeSLrvRVjL4XUSLfoqERFK4=----ATTACHMENT:----OTM4Njg5MjU2NzI4NzE1OCA3ODY3NzgwMTk1MzQzOTk3IDgwNDg2MjE3NDc5OTQ3Mw==