From f6ca190457f0a6d691fe1325f269e88c426376ca Mon Sep 17 00:00:00 2001 From: PrinsFrank Date: Sat, 8 Jul 2023 23:58:11 +0300 Subject: [PATCH] Add more missing currency symbols --- src/Currency/CurrencySymbol.php | 65 ++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/src/Currency/CurrencySymbol.php b/src/Currency/CurrencySymbol.php index 4474a709..b2c43904 100644 --- a/src/Currency/CurrencySymbol.php +++ b/src/Currency/CurrencySymbol.php @@ -44,20 +44,33 @@ enum CurrencySymbol: string case Ghana_Cedi = '₵'; case Gourde = 'G'; case Guarani = '₲'; + case Guinean_Franc = 'FG'; + case Iceland_Krona = 'kr'; case Hryvnia = '₴'; case Indian_Rupee = '₹'; case Iranian_Rial = '﷼'; case Iraqi_Dinar = '.د.ع'; case Jordanian_Dinar = 'د.ا'; + case Kenyan_Shilling = 'KSh'; case Kina = 'K'; case Kuwait_Dinar = 'د.ك'; + case Kyat = 'Ks.'; case Kwanza = 'Kz'; case Lao_Kip = '₭'; case Lari = '₾'; case Lebanese_Pound = '.ل.ل'; + case L = 'L'; + case Le = 'Le'; + case LD = 'LD'; case Moroccan_Dirham = '.د.م'; + case Malagasy_Ariary = 'Ar'; + case Malaysian_Ringgit = 'RM'; + case Mauritius_Rupee = 'Re'; + case Mozambique_Metical = 'MT'; case Naira = '₦'; + case Netherlands_Antillean_Guilder = 'NAƒ'; case New_Israeli_Sheqel = '₪'; + case New_Taiwan_Dollar = 'NT$'; case Philippine_Peso = '₱'; case Pound = '£'; case Qatari_Rial = '.ر.ق'; @@ -143,51 +156,51 @@ public static function forCurrency(CurrencyAlpha3|CurrencyName|CurrencyNumeric $ CurrencyAlpha3::Gold => null, CurrencyAlpha3::Gourde => self::Gourde, CurrencyAlpha3::Guarani => self::Guarani, - CurrencyAlpha3::Guinean_Franc => null, + CurrencyAlpha3::Guinean_Franc => self::Guinean_Franc, CurrencyAlpha3::Guyana_Dollar => self::Dollar, CurrencyAlpha3::Hong_Kong_Dollar => self::Dollar, CurrencyAlpha3::Hryvnia => self::Hryvnia, - CurrencyAlpha3::Iceland_Krona => null, + CurrencyAlpha3::Iceland_Krona => self::Iceland_Krona, CurrencyAlpha3::Indian_Rupee => self::Indian_Rupee, CurrencyAlpha3::Iranian_Rial => self::Iranian_Rial, CurrencyAlpha3::Iraqi_Dinar => self::Iraqi_Dinar, CurrencyAlpha3::Jamaican_Dollar => self::Dollar, CurrencyAlpha3::Jordanian_Dinar => self::Jordanian_Dinar, - CurrencyAlpha3::Kenyan_Shilling => null, + CurrencyAlpha3::Kenyan_Shilling => self::Kenyan_Shilling, CurrencyAlpha3::Kina => self::Kina, CurrencyAlpha3::Kuwaiti_Dinar => self::Kuwait_Dinar, CurrencyAlpha3::Kwanza => self::Kwanza, - CurrencyAlpha3::Kyat => null, + CurrencyAlpha3::Kyat => self::Kyat, CurrencyAlpha3::Lao_Kip => self::Lao_Kip, CurrencyAlpha3::Lari => self::Lari, CurrencyAlpha3::Lebanese_Pound => self::Lebanese_Pound, - CurrencyAlpha3::Lek => null, - CurrencyAlpha3::Lempira => null, - CurrencyAlpha3::Leone => null, - CurrencyAlpha3::Liberian_Dollar => null, - CurrencyAlpha3::Libyan_Dinar => null, - CurrencyAlpha3::Lilangeni => null, - CurrencyAlpha3::Loti => null, - CurrencyAlpha3::Malagasy_Ariary => null, - CurrencyAlpha3::Malawi_Kwacha => null, - CurrencyAlpha3::Malaysian_Ringgit => null, - CurrencyAlpha3::Mauritius_Rupee => null, - CurrencyAlpha3::Mexican_Peso => null, + CurrencyAlpha3::Lek => self::L, + CurrencyAlpha3::Lempira => self::L, + CurrencyAlpha3::Leone => self::Le, + CurrencyAlpha3::Liberian_Dollar => self::Dollar, + CurrencyAlpha3::Libyan_Dinar => self::LD, + CurrencyAlpha3::Lilangeni => self::L, + CurrencyAlpha3::Loti => self::L, + CurrencyAlpha3::Malagasy_Ariary => self::Malagasy_Ariary, + CurrencyAlpha3::Malawi_Kwacha => self::Kina, + CurrencyAlpha3::Malaysian_Ringgit => self::Malaysian_Ringgit, + CurrencyAlpha3::Mauritius_Rupee => self::Mauritius_Rupee, + CurrencyAlpha3::Mexican_Peso => self::Dollar, CurrencyAlpha3::Mexican_Unidad_de_Inversion_UDI => null, - CurrencyAlpha3::Moldovan_Leu => null, + CurrencyAlpha3::Moldovan_Leu => self::L, CurrencyAlpha3::Moroccan_Dirham => self::Moroccan_Dirham, - CurrencyAlpha3::Mozambique_Metical => null, + CurrencyAlpha3::Mozambique_Metical => self::Mozambique_Metical, CurrencyAlpha3::Mvdol => null, CurrencyAlpha3::Naira => self::Naira, CurrencyAlpha3::Nakfa => null, - CurrencyAlpha3::Namibia_Dollar => null, + CurrencyAlpha3::Namibia_Dollar => self::Dollar, CurrencyAlpha3::Nepalese_Rupee => null, - CurrencyAlpha3::Netherlands_Antillean_Guilder => null, + CurrencyAlpha3::Netherlands_Antillean_Guilder => self::Netherlands_Antillean_Guilder, CurrencyAlpha3::New_Israeli_Sheqel => self::New_Israeli_Sheqel, - CurrencyAlpha3::New_Taiwan_Dollar => null, - CurrencyAlpha3::New_Zealand_Dollar => null, + CurrencyAlpha3::New_Taiwan_Dollar => self::New_Taiwan_Dollar, + CurrencyAlpha3::New_Zealand_Dollar => self::Dollar, CurrencyAlpha3::Ngultrum => null, - CurrencyAlpha3::North_Korean_Won => null, + CurrencyAlpha3::North_Korean_Won => self::Won, CurrencyAlpha3::Norwegian_Krone => null, CurrencyAlpha3::Ouguiya => null, CurrencyAlpha3::Pa_anga => null, @@ -218,7 +231,7 @@ public static function forCurrency(CurrencyAlpha3|CurrencyName|CurrencyNumeric $ CurrencyAlpha3::Silver => null, CurrencyAlpha3::Singapore_Dollar => self::Dollar, CurrencyAlpha3::Sol => null, - CurrencyAlpha3::Solomon_Islands_Dollar => null, + CurrencyAlpha3::Solomon_Islands_Dollar => self::Dollar, CurrencyAlpha3::Som => null, CurrencyAlpha3::Somali_Shilling => null, CurrencyAlpha3::Somoni => null, @@ -255,9 +268,9 @@ public static function forCurrency(CurrencyAlpha3|CurrencyName|CurrencyNumeric $ CurrencyAlpha3::Won => self::Won, CurrencyAlpha3::Yemeni_Rial => self::Yemeni_Rial, CurrencyAlpha3::Yen => self::Yen, - CurrencyAlpha3::Yuan_Renminbi => null, + CurrencyAlpha3::Yuan_Renminbi => self::Yen, CurrencyAlpha3::Zambian_Kwacha => null, - CurrencyAlpha3::Zimbabwe_Dollar => null, + CurrencyAlpha3::Zimbabwe_Dollar => self::Dollar, CurrencyAlpha3::Zloty => null, CurrencyAlpha3::Kuna => null, };