aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/src/Formatter/NumberFormatterInterface.php
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-12-31 10:43:19 +1100
committerRedMatrix <info@friendica.com>2014-12-31 10:43:19 +1100
commit4f35efa0bad4ae6489b63f3eebafe6542d654094 (patch)
treefdf7577c0b602a1f8b86401572e53cfe90cf2474 /library/intl/src/Formatter/NumberFormatterInterface.php
parentae9d08267c632cae36a4ebd34c2077fd0051e0e7 (diff)
downloadvolse-hubzilla-4f35efa0bad4ae6489b63f3eebafe6542d654094.tar.gz
volse-hubzilla-4f35efa0bad4ae6489b63f3eebafe6542d654094.tar.bz2
volse-hubzilla-4f35efa0bad4ae6489b63f3eebafe6542d654094.zip
Revert "Language names via intl library."
Diffstat (limited to 'library/intl/src/Formatter/NumberFormatterInterface.php')
-rw-r--r--library/intl/src/Formatter/NumberFormatterInterface.php134
1 files changed, 0 insertions, 134 deletions
diff --git a/library/intl/src/Formatter/NumberFormatterInterface.php b/library/intl/src/Formatter/NumberFormatterInterface.php
deleted file mode 100644
index 721107555..000000000
--- a/library/intl/src/Formatter/NumberFormatterInterface.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-
-namespace CommerceGuys\Intl\Formatter;
-
-use CommerceGuys\Intl\Currency\CurrencyInterface;
-use CommerceGuys\Intl\NumberFormat\NumberFormatInterface;
-
-interface NumberFormatterInterface
-{
- /* Format style constants */
- const DECIMAL = 1;
- const PERCENT = 2;
- const CURRENCY = 3;
- const CURRENCY_ACCOUNTING = 4;
-
- /* Currency display style constants */
- const CURRENCY_DISPLAY_SYMBOL = 1;
- const CURRENCY_DISPLAY_CODE = 2;
-
- /**
- * Formats a number.
- *
- * Please note that the provided value should already be rounded.
- * This formatter doesn't do any rounding of its own, and will simply
- * truncate extra digits.
- *
- * @param string $value The value to format.
- *
- * @return string
- */
- public function format($value);
-
- /**
- * Formats a currency value.
- *
- * Please note that the provided value should already be rounded.
- * This formatter doesn't do any rounding of its own, and will simply
- * truncate extra digits.
- *
- * @param string $value The value to format.
- * @param CurrencyInterface $currency The currency.
- *
- * @return string
- */
- public function formatCurrency($value, CurrencyInterface $currency);
-
- /**
- * Parses a formatted currency value.
- *
- * Commonly used in price input widgets where the end-user might
- * input a value using digits and symbols common to their locale.
- *
- * @param string $value The value to parse.
- * @param CurrencyInterface $currency The currency.
- *
- * @return string|false The parsed numeric value or FALSE on error.
- */
- public function parseCurrency($value, CurrencyInterface $currency);
-
- /**
- * Gets the number format.
- *
- * @return NumberFormatInterface
- */
- public function getNumberFormat();
-
- /**
- * Gets the minimum number of fraction digits.
- *
- * Defaults to 0 for decimal and percentage styles.
- * Defaults to null for currency styles, since the currency number of
- * fraction digits is used as the default in that case.
- *
- * @return int
- */
- public function getMinimumFractionDigits();
-
- /**
- * Sets the minimum number of fraction digits.
- *
- * @param int $minimumFractionDigits
- */
- public function setMinimumFractionDigits($minimumFractionDigits);
-
- /**
- * Gets the maximum number of fraction digits.
- *
- * Defaults to 3 for decimal and percentage styles.
- * Defaults to null for currency styles, since the currency number of
- * fraction digits is used as the default in that case.
- *
- * @return int
- */
- public function getMaximumFractionDigits();
-
- /**
- * Sets the maximum number of fraction digits.
- *
- * @param int $maximumFractionDigits
- */
- public function setMaximumFractionDigits($maximumFractionDigits);
-
- /**
- * Returns whether the major digits will be grouped.
- *
- * @return bool
- */
- public function isGroupingUsed();
-
- /**
- * Sets whether or not major digits should be grouped
- *
- * @param bool $groupingUsed
- */
- public function setGroupingUsed($groupingUsed);
-
- /**
- * Gets the currency display style.
- *
- * Controls whether a currency amount will be shown with the
- * currency symbol (CURRENCY_DISPLAY_SYMBOL) or the
- * currency code (CURRENCY_DISPLAY_CODE).
- *
- * @return int
- */
- public function getCurrencyDisplay();
-
- /**
- * Sets the currency display style.
- *
- * @param int $currencyDisplay One of the CURRENCY_DISPLAY_ constants.
- */
- public function setCurrencyDisplay($currencyDisplay);
-}