Skip to content

Commit

Permalink
Add last remaining currency symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Jul 8, 2023
1 parent f6ca190 commit 2b82ef3
Showing 1 changed file with 59 additions and 35 deletions.
94 changes: 59 additions & 35 deletions src/Currency/CurrencySymbol.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ enum CurrencySymbol: string
case Mauritius_Rupee = 'Re';
case Mozambique_Metical = 'MT';
case Naira = '';
case Nepalese_Rupee = 'रु';
case Netherlands_Antillean_Guilder = 'NAƒ';
case New_Israeli_Sheqel = '';
case New_Taiwan_Dollar = 'NT$';
case Ngultrum = 'Nu.';
case Ouguiya = 'UM';
case Pa_anga = 'T$';
case Philippine_Peso = '';
case Pound = '£';
case Qatari_Rial = '.ر.ق';
Expand All @@ -86,6 +90,26 @@ enum CurrencySymbol: string
case Won = '';
case Yemeni_Rial = '.ر.ي';
case Yen = '¥';
case Pakistan_Rupee = 'Rs.';
case Pula = 'P';
case Q = 'Q';
case R = 'R';
case Rp = 'Rp';
case FRw = 'FRw';
case DIN = 'DIN';
case com = 'сом';
case ShSo = 'Sh.So';
case SM = 'SM';
case LS = 'LS';
case fr_dot = 'fr.';
case TSh = 'TSh';
case Tugrik = '';
case Tunisian_Dinar = 'د.ت';
case m = 'm';
case USh = 'USh';
case VT = 'VT';
case Zloty = '';
case kn = 'kn';

public static function forCurrency(CurrencyAlpha3|CurrencyName|CurrencyNumeric $currency): ?self
{
Expand Down Expand Up @@ -194,85 +218,85 @@ public static function forCurrency(CurrencyAlpha3|CurrencyName|CurrencyNumeric $
CurrencyAlpha3::Naira => self::Naira,
CurrencyAlpha3::Nakfa => null,
CurrencyAlpha3::Namibia_Dollar => self::Dollar,
CurrencyAlpha3::Nepalese_Rupee => null,
CurrencyAlpha3::Nepalese_Rupee => self::Nepalese_Rupee,
CurrencyAlpha3::Netherlands_Antillean_Guilder => self::Netherlands_Antillean_Guilder,
CurrencyAlpha3::New_Israeli_Sheqel => self::New_Israeli_Sheqel,
CurrencyAlpha3::New_Taiwan_Dollar => self::New_Taiwan_Dollar,
CurrencyAlpha3::New_Zealand_Dollar => self::Dollar,
CurrencyAlpha3::Ngultrum => null,
CurrencyAlpha3::Ngultrum => self::Ngultrum,
CurrencyAlpha3::North_Korean_Won => self::Won,
CurrencyAlpha3::Norwegian_Krone => null,
CurrencyAlpha3::Ouguiya => null,
CurrencyAlpha3::Pa_anga => null,
CurrencyAlpha3::Pakistan_Rupee => null,
CurrencyAlpha3::Norwegian_Krone => self::Iceland_Krona,
CurrencyAlpha3::Ouguiya => self::Ouguiya,
CurrencyAlpha3::Pa_anga => self::Pa_anga,
CurrencyAlpha3::Pakistan_Rupee => self::Pakistan_Rupee,
CurrencyAlpha3::Palladium => null,
CurrencyAlpha3::Pataca => null,
CurrencyAlpha3::Pataca => self::Dollar,
CurrencyAlpha3::Peso_Convertible => null,
CurrencyAlpha3::Peso_Uruguayo => null,
CurrencyAlpha3::Peso_Uruguayo => self::Dollar,
CurrencyAlpha3::Philippine_Peso => self::Philippine_Peso,
CurrencyAlpha3::Platinum => null,
CurrencyAlpha3::Pound_Sterling => self::Pound,
CurrencyAlpha3::Pula => null,
CurrencyAlpha3::Pula => self::Pula,
CurrencyAlpha3::Qatari_Rial => self::Qatari_Rial,
CurrencyAlpha3::Quetzal => null,
CurrencyAlpha3::Rand => null,
CurrencyAlpha3::Quetzal => self::Q,
CurrencyAlpha3::Rand => self::R,
CurrencyAlpha3::Rial_Omani => self::Rial_Omani,
CurrencyAlpha3::Riel => self::Riel,
CurrencyAlpha3::Romanian_Leu => null,
CurrencyAlpha3::Rufiyaa => self::Rufiyaa,
CurrencyAlpha3::Rupiah => null,
CurrencyAlpha3::Rupiah => self::Rp,
CurrencyAlpha3::Russian_Ruble => self::Russian_Ruble,
CurrencyAlpha3::Rwanda_Franc => null,
CurrencyAlpha3::Rwanda_Franc => self::FRw,
CurrencyAlpha3::SDR_Special_Drawing_Right => null,
CurrencyAlpha3::Saint_Helena_Pound => self::Pound,
CurrencyAlpha3::Saudi_Riyal => self::Saudi_Riyal,
CurrencyAlpha3::Serbian_Dinar => null,
CurrencyAlpha3::Seychelles_Rupee => null,
CurrencyAlpha3::Serbian_Dinar => self::DIN,
CurrencyAlpha3::Seychelles_Rupee => self::Mauritius_Rupee,
CurrencyAlpha3::Silver => null,
CurrencyAlpha3::Singapore_Dollar => self::Dollar,
CurrencyAlpha3::Sol => null,
CurrencyAlpha3::Solomon_Islands_Dollar => self::Dollar,
CurrencyAlpha3::Som => null,
CurrencyAlpha3::Somali_Shilling => null,
CurrencyAlpha3::Somoni => null,
CurrencyAlpha3::Som => self::com,
CurrencyAlpha3::Somali_Shilling => self::ShSo,
CurrencyAlpha3::Somoni => self::SM,
CurrencyAlpha3::South_Sudanese_Pound => self::Pound,
CurrencyAlpha3::Sri_Lanka_Rupee => null,
CurrencyAlpha3::Sri_Lanka_Rupee => self::Mauritius_Rupee,
CurrencyAlpha3::Sucre => null,
CurrencyAlpha3::Sudanese_Pound => null,
CurrencyAlpha3::Sudanese_Pound => self::LS,
CurrencyAlpha3::Surinam_Dollar => self::Dollar,
CurrencyAlpha3::Swedish_Krona => null,
CurrencyAlpha3::Swiss_Franc => null,
CurrencyAlpha3::Syrian_Pound => null,
CurrencyAlpha3::Swedish_Krona => self::Iceland_Krona,
CurrencyAlpha3::Swiss_Franc => self::fr_dot,
CurrencyAlpha3::Syrian_Pound => self::LS,
CurrencyAlpha3::Taka => self::Taka,
CurrencyAlpha3::Tala => null,
CurrencyAlpha3::Tanzanian_Shilling => null,
CurrencyAlpha3::Tala => self::Dollar,
CurrencyAlpha3::Tanzanian_Shilling => self::TSh,
CurrencyAlpha3::Tenge => self::Tenge,
CurrencyAlpha3::The_codes_assigned_for_transactions_where_no_currency_is_involved => null,
CurrencyAlpha3::Trinidad_and_Tobago_Dollar => null,
CurrencyAlpha3::Tugrik => null,
CurrencyAlpha3::Tunisian_Dinar => null,
CurrencyAlpha3::Trinidad_and_Tobago_Dollar => self::Dollar,
CurrencyAlpha3::Tugrik => self::Tugrik,
CurrencyAlpha3::Tunisian_Dinar => self::Tunisian_Dinar,
CurrencyAlpha3::Turkish_Lira => self::Turkish_Lira,
CurrencyAlpha3::Turkmenistan_New_Manat => null,
CurrencyAlpha3::Turkmenistan_New_Manat => self::m,
CurrencyAlpha3::UAE_Dirham => self::UAE_Dirham,
CurrencyAlpha3::US_Dollar => self::Dollar,
CurrencyAlpha3::US_Dollar_Next_day => self::Dollar,
CurrencyAlpha3::Uganda_Shilling => null,
CurrencyAlpha3::Uganda_Shilling => self::USh,
CurrencyAlpha3::Unidad_Previsional => null,
CurrencyAlpha3::Unidad_de_Fomento => null,
CurrencyAlpha3::Unidad_de_Valor_Real => null,
CurrencyAlpha3::Uruguay_Peso_en_Unidades_Indexadas_UI => null,
CurrencyAlpha3::Uruguay_Peso_en_Unidades_Indexadas_UI => self::Dollar,
CurrencyAlpha3::Uzbekistan_Sum => null,
CurrencyAlpha3::Vatu => null,
CurrencyAlpha3::Vatu => self::VT,
CurrencyAlpha3::WIR_Euro => null,
CurrencyAlpha3::WIR_Franc => null,
CurrencyAlpha3::Won => self::Won,
CurrencyAlpha3::Yemeni_Rial => self::Yemeni_Rial,
CurrencyAlpha3::Yen => self::Yen,
CurrencyAlpha3::Yuan_Renminbi => self::Yen,
CurrencyAlpha3::Zambian_Kwacha => null,
CurrencyAlpha3::Zambian_Kwacha => self::Kina,
CurrencyAlpha3::Zimbabwe_Dollar => self::Dollar,
CurrencyAlpha3::Zloty => null,
CurrencyAlpha3::Kuna => null,
CurrencyAlpha3::Zloty => self::Zloty,
CurrencyAlpha3::Kuna => self::kn,
};
}
}

0 comments on commit 2b82ef3

Please sign in to comment.