From 46b77928f746a4231d064774b5b67fd892c7ce86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 17:50:34 +0200 Subject: rm vendor --- .../Intl/ResourceBundle/CurrencyBundle.php | 94 ---------------------- 1 file changed, 94 deletions(-) delete mode 100644 vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/CurrencyBundle.php (limited to 'vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/CurrencyBundle.php') diff --git a/vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/CurrencyBundle.php b/vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/CurrencyBundle.php deleted file mode 100644 index 6f2a0ed3..00000000 --- a/vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/CurrencyBundle.php +++ /dev/null @@ -1,94 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Intl\ResourceBundle; - -/** - * Default implementation of {@link CurrencyBundleInterface}. - * - * @author Bernhard Schussek - */ -class CurrencyBundle extends AbstractBundle implements CurrencyBundleInterface -{ - const INDEX_NAME = 0; - - const INDEX_SYMBOL = 1; - - const INDEX_FRACTION_DIGITS = 2; - - const INDEX_ROUNDING_INCREMENT = 3; - - /** - * {@inheritdoc} - */ - public function getCurrencySymbol($currency, $locale = null) - { - if (null === $locale) { - $locale = \Locale::getDefault(); - } - - return $this->readEntry($locale, array('Currencies', $currency, static::INDEX_SYMBOL)); - } - - /** - * {@inheritdoc} - */ - public function getCurrencyName($currency, $locale = null) - { - if (null === $locale) { - $locale = \Locale::getDefault(); - } - - return $this->readEntry($locale, array('Currencies', $currency, static::INDEX_NAME)); - } - - /** - * {@inheritdoc} - */ - public function getCurrencyNames($locale = null) - { - if (null === $locale) { - $locale = \Locale::getDefault(); - } - - if (null === ($currencies = $this->readEntry($locale, array('Currencies')))) { - return array(); - } - - if ($currencies instanceof \Traversable) { - $currencies = iterator_to_array($currencies); - } - - $index = static::INDEX_NAME; - - array_walk($currencies, function (&$value) use ($index) { - $value = $value[$index]; - }); - - return $currencies; - } - - /** - * {@inheritdoc} - */ - public function getFractionDigits($currency) - { - return $this->readEntry('en', array('Currencies', $currency, static::INDEX_FRACTION_DIGITS)); - } - - /** - * {@inheritdoc} - */ - public function getRoundingIncrement($currency) - { - return $this->readEntry('en', array('Currencies', $currency, static::INDEX_ROUNDING_INCREMENT)); - } -} -- cgit v1.2.3