MDAllowedValueSets/src/MDCurrenciesSet.php

45 lines
956 B
PHP
Raw Normal View History

<?PHP
/**
* Contains a class for controlling the list of available currencies.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
/**
* Class containing available currencies.
*/
2020-08-29 17:21:18 +02:00
final class MDCurrenciesSet extends MDValueSet {
const CURRENCIES = [
'',
'ddr-Mark',
'ddr-MDN',
'de-DM',
'de-RM',
'es-Real',
'eu-EUR',
'fr-FF',
'id-IDR',
'hu-Ft',
'hu-Lari',
'hu-Pengő',
'hu-Korona',
'pl-Złoty',
2022-10-31 15:44:27 +01:00
'uk-GBP',
'us-USD',
];
/**
* Gets a list of the entries in a translated version.
*
* @param MDTlLoader $tlLoader Translation loader.
*
* @return array<string>
*/
public static function getSortedList(MDTlLoader $tlLoader):array {
return parent::getTlSortedList($tlLoader, self::CURRENCIES, "currencies_set", "currencies_set");
}
}