⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
olasjoys
/
src
/
Core
/
Localization
/
CLDR
/
Edit File: LocaleInterface.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Localization\CLDR; use PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException; /** * CLDR Locale entity. This is an immutable data object. * * This class represents the immutable object of CLDR data for a specific locale, translated in a given language. * It is the only data object visible and handleable by "outside" code (meaning non-CLDR code). */ interface LocaleInterface { /** * Get the code of this Locale (simplified IETF notation). * * @return string * The locale code */ public function getLocaleCode(); /** * Get all available numbering systems for this locale. * * @return string[] */ public function getNumberingSystems(); /** * Get the default numbering system for this locale. * * @return string */ public function getDefaultNumberingSystem(); /** * Get the minimum grouping digits number when formatting numbers for this locale. * * @return int */ public function getMinimumGroupingDigits(); /** * Get all available number symbols lists, by numbering system. * * @return NumberSymbolsData[] All number symbols lists (by numbering system) */ public function getAllNumberSymbols(); /** * Get the number symbols to use for a given numbering system. * * @param string|null $numberingSystem The numbering system of the wanted symbols set. * If null, the default numbering system of this locale will be used. * * @return NumberSymbolsData The wanted number symbols * * @throws LocalizationException When passed $numberingSystem is invalid */ public function getNumberSymbolsByNumberingSystem($numberingSystem = null); /** * Get the pattern to use when formatting a decimal number (for a given numbering system). * * @param string|null $numberingSystem The numbering system of the wanted symbols set. * If null, the default numbering system of this locale will be used. * * @return string The decimal pattern * * @throws LocalizationException When passed numbering system is invalid */ public function getDecimalPattern($numberingSystem = null); /** * Get the pattern to use when formatting a percentage (for a given numbering system). * * @param string|null $numberingSystem The numbering system of the wanted symbols set. * If null, the default numbering system of this locale will be used. * * @return string The percent pattern * * @throws LocalizationException When passed numbering system is invalid */ public function getPercentPattern($numberingSystem = null); /** * Get the pattern to use when formatting a price (for a given numbering system). * * @param string|null $numberingSystem The numbering system of the wanted symbols set. * If null, the default numbering system of this locale will be used. * * @return string The currency pattern * * @throws LocalizationException When passed numbering system is invalid */ public function getCurrencyPattern($numberingSystem = null); /** * Get a given CLDR Currency. * * @param string $currencyCode An ISO 4217 currency code * * @return CurrencyInterface|null The wanted CLDR Currency. Null if this currency is not available for this locale. */ public function getCurrency($currencyCode); /** * Get CLDR data of a given currency. * * @param string $currencyCode An ISO 4217 currency code * * @return CurrencyData|null The wanted currency data. Null if this currency is not available for this locale. */ public function getCurrencyData($currencyCode); /** * Get CLDR data of all currencies. * * @return CurrencyData[] Data of all currencies */ public function getAllCurrencies(); }
Simpan