From f56d864fb8f52718a5d504f0b54b6e73cf9acee4 Mon Sep 17 00:00:00 2001 From: PrinsFrank Date: Sun, 19 Mar 2023 11:49:26 +0100 Subject: [PATCH] Normalize keys & csfixer --- src/CountryShort/CountryAlpha2.php | 498 +++++++++--------- src/CountryShort/CountryAlpha3.php | 498 +++++++++--------- src/CountryShort/CountryName.php | 498 +++++++++--------- src/CountryShort/CountryNumeric.php | 498 +++++++++--------- tests/Unit/CountryShort/CountryAlpha2Test.php | 70 +++ tests/Unit/CountryShort/CountryAlpha3Test.php | 70 +++ tests/Unit/CountryShort/CountryNameTest.php | 62 +++ .../Unit/CountryShort/CountryNumericTest.php | 97 ++++ 8 files changed, 1295 insertions(+), 996 deletions(-) create mode 100644 tests/Unit/CountryShort/CountryAlpha2Test.php create mode 100644 tests/Unit/CountryShort/CountryAlpha3Test.php create mode 100644 tests/Unit/CountryShort/CountryNameTest.php create mode 100644 tests/Unit/CountryShort/CountryNumericTest.php diff --git a/src/CountryShort/CountryAlpha2.php b/src/CountryShort/CountryAlpha2.php index c7c74bb2..b520cd0a 100644 --- a/src/CountryShort/CountryAlpha2.php +++ b/src/CountryShort/CountryAlpha2.php @@ -10,255 +10,255 @@ */ enum CountryAlpha2: string { - case Afghanistan = 'AF'; - case Aland_Islands = 'AX'; - case Albania = 'AL'; - case Algeria = 'DZ'; - case American_Samoa = 'AS'; - case Andorra = 'AD'; - case Angola = 'AO'; - case Anguilla = 'AI'; - case Antarctica = 'AQ'; - case Antigua_and_Barbuda = 'AG'; - case Argentina = 'AR'; - case Armenia = 'AM'; - case Aruba = 'AW'; - case Australia = 'AU'; - case Austria = 'AT'; - case Azerbaijan = 'AZ'; - case Bahamas = 'BS'; - case Bahrain = 'BH'; - case Bangladesh = 'BD'; - case Barbados = 'BB'; - case Belarus = 'BY'; - case Belgium = 'BE'; - case Belize = 'BZ'; - case Benin = 'BJ'; - case Bermuda = 'BM'; - case Bhutan = 'BT'; - case Bolivia_Plurinational_State = 'BO'; - case Bonaire_Sint_Eustatius_and_Saba = 'BQ'; - case Bosnia_and_Herzegovina = 'BA'; - case Botswana = 'BW'; - case Bouvet_Island = 'BV'; - case Brazil = 'BR'; - case British_Indian_Ocean_Territory = 'IO'; - case Brunei_Darussalam = 'BN'; - case Bulgaria = 'BG'; - case Burkina_Faso = 'BF'; - case Burundi = 'BI'; - case Cabo_Verde = 'CV'; - case Cambodia = 'KH'; - case Cameroon = 'CM'; - case Canada = 'CA'; - case Cayman_Islands = 'KY'; - case Central_African_Republic = 'CF'; - case Chad = 'TD'; - case Chile = 'CL'; - case China = 'CN'; - case Christmas_Island = 'CX'; - case Cocos_Keeling_Islands = 'CC'; - case Colombia = 'CO'; - case Comoros = 'KM'; - case Congo = 'CG'; - case Congo_Democratic_Republic = 'CD'; - case Cook_Islands = 'CK'; - case Costa_Rica = 'CR'; - case Cote_d_Ivoire = 'CI'; - case Croatia = 'HR'; - case Cuba = 'CU'; - case Curacao = 'CW'; - case Cyprus = 'CY'; - case Czechia = 'CZ'; - case Denmark = 'DK'; - case Djibouti = 'DJ'; - case Dominica = 'DM'; - case Dominican_Republic = 'DO'; - case Ecuador = 'EC'; - case Egypt = 'EG'; - case El_Salvador = 'SV'; - case Equatorial_Guinea = 'GQ'; - case Eritrea = 'ER'; - case Estonia = 'EE'; - case Eswatini = 'SZ'; - case Ethiopia = 'ET'; - case Falkland_Islands = 'FK'; - case Faroe_Islands = 'FO'; - case Fiji = 'FJ'; - case Finland = 'FI'; - case France = 'FR'; - case French_Guiana = 'GF'; - case French_Polynesia = 'PF'; - case French_Southern_Territories = 'TF'; - case Gabon = 'GA'; - case Gambia = 'GM'; - case Georgia = 'GE'; - case Germany = 'DE'; - case Ghana = 'GH'; - case Gibraltar = 'GI'; - case Greece = 'GR'; - case Greenland = 'GL'; - case Grenada = 'GD'; - case Guadeloupe = 'GP'; - case Guam = 'GU'; - case Guatemala = 'GT'; - case Guernsey = 'GG'; - case Guinea = 'GN'; - case Guinea_Bissau = 'GW'; - case Guyana = 'GY'; - case Haiti = 'HT'; - case Heard_and_McDonald_Islands = 'HM'; - case Holy_See = 'VA'; - case Honduras = 'HN'; - case Hong_Kong = 'HK'; - case Hungary = 'HU'; - case Iceland = 'IS'; - case India = 'IN'; - case Indonesia = 'ID'; - case Iran_Islamic_Republic = 'IR'; - case Iraq = 'IQ'; - case Ireland = 'IE'; - case Isle_of_Man = 'IM'; - case Israel = 'IL'; - case Italy = 'IT'; - case Jamaica = 'JM'; - case Japan = 'JP'; - case Jersey = 'JE'; - case Jordan = 'JO'; - case Kazakhstan = 'KZ'; - case Kenya = 'KE'; - case Kiribati = 'KI'; - case Korea_Democratic_Peoples_Republic = 'KP'; - case Korea_Republic = 'KR'; - case Kuwait = 'KW'; - case Kyrgyzstan = 'KG'; - case Lao = 'LA'; - case Latvia = 'LV'; - case Lebanon = 'LB'; - case Lesotho = 'LS'; - case Liberia = 'LR'; - case Libya = 'LY'; - case Liechtenstein = 'LI'; - case Lithuania = 'LT'; - case Luxembourg = 'LU'; - case Macao = 'MO'; - case Madagascar = 'MG'; - case Malawi = 'MW'; - case Malaysia = 'MY'; - case Maldives = 'MV'; - case Mali = 'ML'; - case Malta = 'MT'; - case Marshall_Islands = 'MH'; - case Martinique = 'MQ'; - case Mauritania = 'MR'; - case Mauritius = 'MU'; - case Mayotte = 'YT'; - case Mexico = 'MX'; - case Micronesia = 'FM'; - case Moldova = 'MD'; - case Monaco = 'MC'; - case Mongolia = 'MN'; - case Montenegro = 'ME'; - case Montserrat = 'MS'; - case Morocco = 'MA'; - case Mozambique = 'MZ'; - case Myanmar = 'MM'; - case Namibia = 'NA'; - case Nauru = 'NR'; - case Nepal = 'NP'; - case Netherlands = 'NL'; - case New_Caledonia = 'NC'; - case New_Zealand = 'NZ'; - case Nicaragua = 'NI'; - case Niger = 'NE'; - case Nigeria = 'NG'; - case Niue = 'NU'; - case Norfolk_Island = 'NF'; - case North_Macedonia = 'MK'; - case Northern_Mariana_Islands = 'MP'; - case Norway = 'NO'; - case Oman = 'OM'; - case Pakistan = 'PK'; - case Palau = 'PW'; - case Palestine = 'PS'; - case Panama = 'PA'; - case Papua_New_Guinea = 'PG'; - case Paraguay = 'PY'; - case Peru = 'PE'; - case Philippines = 'PH'; - case Pitcairn = 'PN'; - case Poland = 'PL'; - case Portugal = 'PT'; - case Puerto_Rico = 'PR'; - case Qatar = 'QA'; - case Reunion = 'RE'; - case Romania = 'RO'; - case Russian_Federation = 'RU'; - case Rwanda = 'RW'; - case Saint_Barthelemy = 'BL'; - case Saint_Helena_Ascension_Tristan_da_Cunha = 'SH'; - case Saint_Kitts_and_Nevis = 'KN'; - case Saint_Lucia = 'LC'; - case Saint_Martin_French_part = 'MF'; - case Saint_Pierre_and_Miquelon = 'PM'; - case Saint_Vincent_and_the_Grenadines = 'VC'; - case Samoa = 'WS'; - case San_Marino = 'SM'; - case Sao_Tome_and_Principe = 'ST'; - case Saudi_Arabia = 'SA'; - case Senegal = 'SN'; - case Serbia = 'RS'; - case Seychelles = 'SC'; - case Sierra_Leone = 'SL'; - case Singapore = 'SG'; - case Sint_Maarten_Dutch_part = 'SX'; - case Slovakia = 'SK'; - case Slovenia = 'SI'; - case Solomon_Islands = 'SB'; - case Somalia = 'SO'; - case South_Africa = 'ZA'; - case South_Georgia_South_Sandwich_Islands = 'GS'; - case South_Sudan = 'SS'; - case Spain = 'ES'; - case Sri_Lanka = 'LK'; - case Sudan = 'SD'; - case Suriname = 'SR'; - case Svalbard_Jan_Mayen = 'SJ'; - case Sweden = 'SE'; - case Switzerland = 'CH'; - case Syrian_Arab_Republic = 'SY'; - case Taiwan_Province_of_China = 'TW'; - case Tajikistan = 'TJ'; - case Tanzania = 'TZ'; - case Thailand = 'TH'; - case Timor_Leste = 'TL'; - case Togo = 'TG'; - case Tokelau = 'TK'; - case Tonga = 'TO'; - case Trinidad_and_Tobago = 'TT'; - case Tunisia = 'TN'; - case Turkey = 'TR'; - case Turkmenistan = 'TM'; - case Turks_and_Caicos_Islands = 'TC'; - case Tuvalu = 'TV'; - case Uganda = 'UG'; - case Ukraine = 'UA'; - case United_Arab_Emirates = 'AE'; - case United_Kingdom = 'GB'; - case United_States_Outlying_Islands = 'UM'; - case United_States_of_America = 'US'; - case Uruguay = 'UY'; - case Uzbekistan = 'UZ'; - case Vanuatu = 'VU'; - case Venezuela = 'VE'; - case Viet_Nam = 'VN'; - case Virgin_Islands_British = 'VG'; - case Virgin_Islands_U_S = 'VI'; - case Wallis_and_Futuna = 'WF'; - case Western_Sahara = 'EH'; - case Yemen = 'YE'; - case Zambia = 'ZM'; - case Zimbabwe = 'ZW'; + case Afghanistan = 'AF'; + case Aland_Islands = 'AX'; + case Albania = 'AL'; + case Algeria = 'DZ'; + case American_Samoa = 'AS'; + case Andorra = 'AD'; + case Angola = 'AO'; + case Anguilla = 'AI'; + case Antarctica = 'AQ'; + case Antigua_and_Barbuda = 'AG'; + case Argentina = 'AR'; + case Armenia = 'AM'; + case Aruba = 'AW'; + case Australia = 'AU'; + case Austria = 'AT'; + case Azerbaijan = 'AZ'; + case Bahamas = 'BS'; + case Bahrain = 'BH'; + case Bangladesh = 'BD'; + case Barbados = 'BB'; + case Belarus = 'BY'; + case Belgium = 'BE'; + case Belize = 'BZ'; + case Benin = 'BJ'; + case Bermuda = 'BM'; + case Bhutan = 'BT'; + case Bolivia = 'BO'; + case Bonaire_Sint_Eustatius_and_Saba = 'BQ'; + case Bosnia_and_Herzegovina = 'BA'; + case Botswana = 'BW'; + case Bouvet_Island = 'BV'; + case Brazil = 'BR'; + case British_Indian_Ocean_Territory = 'IO'; + case Brunei_Darussalam = 'BN'; + case Bulgaria = 'BG'; + case Burkina_Faso = 'BF'; + case Burundi = 'BI'; + case Cabo_Verde = 'CV'; + case Cambodia = 'KH'; + case Cameroon = 'CM'; + case Canada = 'CA'; + case Cayman_Islands = 'KY'; + case Central_African_Republic = 'CF'; + case Chad = 'TD'; + case Chile = 'CL'; + case China = 'CN'; + case Christmas_Island = 'CX'; + case Cocos_Islands = 'CC'; + case Colombia = 'CO'; + case Comoros = 'KM'; + case Congo = 'CG'; + case Congo_Democratic_Republic = 'CD'; + case Cook_Islands = 'CK'; + case Costa_Rica = 'CR'; + case Cote_d_Ivoire = 'CI'; + case Croatia = 'HR'; + case Cuba = 'CU'; + case Curacao = 'CW'; + case Cyprus = 'CY'; + case Czechia = 'CZ'; + case Denmark = 'DK'; + case Djibouti = 'DJ'; + case Dominica = 'DM'; + case Dominican_Republic = 'DO'; + case Ecuador = 'EC'; + case Egypt = 'EG'; + case El_Salvador = 'SV'; + case Equatorial_Guinea = 'GQ'; + case Eritrea = 'ER'; + case Estonia = 'EE'; + case Eswatini = 'SZ'; + case Ethiopia = 'ET'; + case Falkland_Islands = 'FK'; + case Faroe_Islands = 'FO'; + case Fiji = 'FJ'; + case Finland = 'FI'; + case France = 'FR'; + case French_Guiana = 'GF'; + case French_Polynesia = 'PF'; + case French_Southern_Territories = 'TF'; + case Gabon = 'GA'; + case Gambia = 'GM'; + case Georgia = 'GE'; + case Germany = 'DE'; + case Ghana = 'GH'; + case Gibraltar = 'GI'; + case Greece = 'GR'; + case Greenland = 'GL'; + case Grenada = 'GD'; + case Guadeloupe = 'GP'; + case Guam = 'GU'; + case Guatemala = 'GT'; + case Guernsey = 'GG'; + case Guinea = 'GN'; + case Guinea_Bissau = 'GW'; + case Guyana = 'GY'; + case Haiti = 'HT'; + case Heard_Island_and_McDonald_Islands = 'HM'; + case Holy_See = 'VA'; + case Honduras = 'HN'; + case Hong_Kong = 'HK'; + case Hungary = 'HU'; + case Iceland = 'IS'; + case India = 'IN'; + case Indonesia = 'ID'; + case Iran = 'IR'; + case Iraq = 'IQ'; + case Ireland = 'IE'; + case Isle_of_Man = 'IM'; + case Israel = 'IL'; + case Italy = 'IT'; + case Jamaica = 'JM'; + case Japan = 'JP'; + case Jersey = 'JE'; + case Jordan = 'JO'; + case Kazakhstan = 'KZ'; + case Kenya = 'KE'; + case Kiribati = 'KI'; + case Korea_Democratic_Peoples_Republic = 'KP'; + case Korea_Republic = 'KR'; + case Kuwait = 'KW'; + case Kyrgyzstan = 'KG'; + case Lao_Peoples_Democratic_Republic = 'LA'; + case Latvia = 'LV'; + case Lebanon = 'LB'; + case Lesotho = 'LS'; + case Liberia = 'LR'; + case Libya = 'LY'; + case Liechtenstein = 'LI'; + case Lithuania = 'LT'; + case Luxembourg = 'LU'; + case Macao = 'MO'; + case Madagascar = 'MG'; + case Malawi = 'MW'; + case Malaysia = 'MY'; + case Maldives = 'MV'; + case Mali = 'ML'; + case Malta = 'MT'; + case Marshall_Islands = 'MH'; + case Martinique = 'MQ'; + case Mauritania = 'MR'; + case Mauritius = 'MU'; + case Mayotte = 'YT'; + case Mexico = 'MX'; + case Micronesia = 'FM'; + case Moldova = 'MD'; + case Monaco = 'MC'; + case Mongolia = 'MN'; + case Montenegro = 'ME'; + case Montserrat = 'MS'; + case Morocco = 'MA'; + case Mozambique = 'MZ'; + case Myanmar = 'MM'; + case Namibia = 'NA'; + case Nauru = 'NR'; + case Nepal = 'NP'; + case Netherlands = 'NL'; + case New_Caledonia = 'NC'; + case New_Zealand = 'NZ'; + case Nicaragua = 'NI'; + case Niger = 'NE'; + case Nigeria = 'NG'; + case Niue = 'NU'; + case Norfolk_Island = 'NF'; + case North_Macedonia = 'MK'; + case Northern_Mariana_Islands = 'MP'; + case Norway = 'NO'; + case Oman = 'OM'; + case Pakistan = 'PK'; + case Palau = 'PW'; + case Palestine = 'PS'; + case Panama = 'PA'; + case Papua_New_Guinea = 'PG'; + case Paraguay = 'PY'; + case Peru = 'PE'; + case Philippines = 'PH'; + case Pitcairn = 'PN'; + case Poland = 'PL'; + case Portugal = 'PT'; + case Puerto_Rico = 'PR'; + case Qatar = 'QA'; + case Reunion = 'RE'; + case Romania = 'RO'; + case Russian_Federation = 'RU'; + case Rwanda = 'RW'; + case Saint_Barthelemy = 'BL'; + case Saint_Helena_Ascension_Tristan_da_Cunha = 'SH'; + case Saint_Kitts_and_Nevis = 'KN'; + case Saint_Lucia = 'LC'; + case Saint_Martin_French_part = 'MF'; + case Saint_Pierre_and_Miquelon = 'PM'; + case Saint_Vincent_and_the_Grenadines = 'VC'; + case Samoa = 'WS'; + case San_Marino = 'SM'; + case Sao_Tome_and_Principe = 'ST'; + case Saudi_Arabia = 'SA'; + case Senegal = 'SN'; + case Serbia = 'RS'; + case Seychelles = 'SC'; + case Sierra_Leone = 'SL'; + case Singapore = 'SG'; + case Sint_Maarten_Dutch_part = 'SX'; + case Slovakia = 'SK'; + case Slovenia = 'SI'; + case Solomon_Islands = 'SB'; + case Somalia = 'SO'; + case South_Africa = 'ZA'; + case South_Georgia_South_Sandwich_Islands = 'GS'; + case South_Sudan = 'SS'; + case Spain = 'ES'; + case Sri_Lanka = 'LK'; + case Sudan = 'SD'; + case Suriname = 'SR'; + case Svalbard_Jan_Mayen = 'SJ'; + case Sweden = 'SE'; + case Switzerland = 'CH'; + case Syrian_Arab_Republic = 'SY'; + case Taiwan_Province_of_China = 'TW'; + case Tajikistan = 'TJ'; + case Tanzania = 'TZ'; + case Thailand = 'TH'; + case Timor_Leste = 'TL'; + case Togo = 'TG'; + case Tokelau = 'TK'; + case Tonga = 'TO'; + case Trinidad_and_Tobago = 'TT'; + case Tunisia = 'TN'; + case Turkey = 'TR'; + case Turkmenistan = 'TM'; + case Turks_and_Caicos_Islands = 'TC'; + case Tuvalu = 'TV'; + case Uganda = 'UG'; + case Ukraine = 'UA'; + case United_Arab_Emirates = 'AE'; + case United_Kingdom = 'GB'; + case United_States_Outlying_Islands = 'UM'; + case United_States_of_America = 'US'; + case Uruguay = 'UY'; + case Uzbekistan = 'UZ'; + case Vanuatu = 'VU'; + case Venezuela = 'VE'; + case Viet_Nam = 'VN'; + case Virgin_Islands_British = 'VG'; + case Virgin_Islands_U_S = 'VI'; + case Wallis_and_Futuna = 'WF'; + case Western_Sahara = 'EH'; + case Yemen = 'YE'; + case Zambia = 'ZM'; + case Zimbabwe = 'ZW'; public function toISO3166_1_Alpha_3(): CountryAlpha3 { diff --git a/src/CountryShort/CountryAlpha3.php b/src/CountryShort/CountryAlpha3.php index e8f3cc29..4f18ba1a 100644 --- a/src/CountryShort/CountryAlpha3.php +++ b/src/CountryShort/CountryAlpha3.php @@ -10,255 +10,255 @@ */ enum CountryAlpha3: string { - case Afghanistan = 'AFG'; - case Aland_Islands = 'ALA'; - case Albania = 'ALB'; - case Algeria = 'DZA'; - case American_Samoa = 'ASM'; - case Andorra = 'AND'; - case Angola = 'AGO'; - case Anguilla = 'AIA'; - case Antarctica = 'ATA'; - case Antigua_and_Barbuda = 'ATG'; - case Argentina = 'ARG'; - case Armenia = 'ARM'; - case Aruba = 'ABW'; - case Australia = 'AUS'; - case Austria = 'AUT'; - case Azerbaijan = 'AZE'; - case Bahamas = 'BHS'; - case Bahrain = 'BHR'; - case Bangladesh = 'BGD'; - case Barbados = 'BRB'; - case Belarus = 'BLR'; - case Belgium = 'BEL'; - case Belize = 'BLZ'; - case Benin = 'BEN'; - case Bermuda = 'BMU'; - case Bhutan = 'BTN'; - case Bolivia_Plurinational_State_of = 'BOL'; - case Bonaire_Sint_Eustatius_and_Saba = 'BES'; - case Bosnia_and_Herzegovina = 'BIH'; - case Botswana = 'BWA'; - case Bouvet_Island = 'BVT'; - case Brazil = 'BRA'; - case British_Indian_Ocean_Territory = 'IOT'; - case Brunei_Darussalam = 'BRN'; - case Bulgaria = 'BGR'; - case Burkina_Faso = 'BFA'; - case Burundi = 'BDI'; - case Cabo_Verde = 'CPV'; - case Cambodia = 'KHM'; - case Cameroon = 'CMR'; - case Canada = 'CAN'; - case Cayman_Islands = 'CYM'; - case Central_African_Republic = 'CAF'; - case Chad = 'TCD'; - case Chile = 'CHL'; - case China = 'CHN'; - case Christmas_Island = 'CXR'; - case Cocos_Keeling_Islands = 'CCK'; - case Colombia = 'COL'; - case Comoros = 'COM'; - case Congo = 'COG'; - case Congo_the_Democratic_Republic_of = 'COD'; - case Cook_Islands = 'COK'; - case Costa_Rica = 'CRI'; - case Cote_d_Ivoire = 'CIV'; - case Croatia = 'HRV'; - case Cuba = 'CUB'; - case Curacao = 'CUW'; - case Cyprus = 'CYP'; - case Czechia = 'CZE'; - case Denmark = 'DNK'; - case Djibouti = 'DJI'; - case Dominica = 'DMA'; - case Dominican_Republic = 'DOM'; - case Ecuador = 'ECU'; - case Egypt = 'EGY'; - case El_Salvador = 'SLV'; - case Equatorial_Guinea = 'GNQ'; - case Eritrea = 'ERI'; - case Estonia = 'EST'; - case Eswatini = 'SWZ'; - case Ethiopia = 'ETH'; - case Falkland_Islands_the_Malvinas = 'FLK'; - case Faroe_Islands = 'FRO'; - case Fiji = 'FJI'; - case Finland = 'FIN'; - case France = 'FRA'; - case French_Guiana = 'GUF'; - case French_Polynesia = 'PYF'; - case French_Southern_Territories = 'ATF'; - case Gabon = 'GAB'; - case Gambia = 'GMB'; - case Georgia = 'GEO'; - case Germany = 'DEU'; - case Ghana = 'GHA'; - case Gibraltar = 'GIB'; - case Greece = 'GRC'; - case Greenland = 'GRL'; - case Grenada = 'GRD'; - case Guadeloupe = 'GLP'; - case Guam = 'GUM'; - case Guatemala = 'GTM'; - case Guernsey = 'GGY'; - case Guinea = 'GIN'; - case Guinea_Bissau = 'GNB'; - case Guyana = 'GUY'; - case Haiti = 'HTI'; - case Heard_Island_and_McDonald_Islands = 'HMD'; - case Holy_See = 'VAT'; - case Honduras = 'HND'; - case Hong_Kong = 'HKG'; - case Hungary = 'HUN'; - case Iceland = 'ISL'; - case India = 'IND'; - case Indonesia = 'IDN'; - case Iran_Islamic_Republic_of = 'IRN'; - case Iraq = 'IRQ'; - case Ireland = 'IRL'; - case Isle_of_Man = 'IMN'; - case Israel = 'ISR'; - case Italy = 'ITA'; - case Jamaica = 'JAM'; - case Japan = 'JPN'; - case Jersey = 'JEY'; - case Jordan = 'JOR'; - case Kazakhstan = 'KAZ'; - case Kenya = 'KEN'; - case Kiribati = 'KIR'; - case Korea_the_Democratic_People_s_Republic_of = 'PRK'; - case Korea_the_Republic_of = 'KOR'; - case Kuwait = 'KWT'; - case Kyrgyzstan = 'KGZ'; - case Lao_People_s_Democratic_Republic = 'LAO'; - case Latvia = 'LVA'; - case Lebanon = 'LBN'; - case Lesotho = 'LSO'; - case Liberia = 'LBR'; - case Libya = 'LBY'; - case Liechtenstein = 'LIE'; - case Lithuania = 'LTU'; - case Luxembourg = 'LUX'; - case Macao = 'MAC'; - case Madagascar = 'MDG'; - case Malawi = 'MWI'; - case Malaysia = 'MYS'; - case Maldives = 'MDV'; - case Mali = 'MLI'; - case Malta = 'MLT'; - case Marshall_Islands = 'MHL'; - case Martinique = 'MTQ'; - case Mauritania = 'MRT'; - case Mauritius = 'MUS'; - case Mayotte = 'MYT'; - case Mexico = 'MEX'; - case Micronesia_Federated_States_of = 'FSM'; - case Moldova_the_Republic_of = 'MDA'; - case Monaco = 'MCO'; - case Mongolia = 'MNG'; - case Montenegro = 'MNE'; - case Montserrat = 'MSR'; - case Morocco = 'MAR'; - case Mozambique = 'MOZ'; - case Myanmar = 'MMR'; - case Namibia = 'NAM'; - case Nauru = 'NRU'; - case Nepal = 'NPL'; - case Netherlands = 'NLD'; - case New_Caledonia = 'NCL'; - case New_Zealand = 'NZL'; - case Nicaragua = 'NIC'; - case Niger = 'NER'; - case Nigeria = 'NGA'; - case Niue = 'NIU'; - case Norfolk_Island = 'NFK'; - case North_Macedonia = 'MKD'; - case Northern_Mariana_Islands = 'MNP'; - case Norway = 'NOR'; - case Oman = 'OMN'; - case Pakistan = 'PAK'; - case Palau = 'PLW'; - case Palestine_State_of = 'PSE'; - case Panama = 'PAN'; - case Papua_New_Guinea = 'PNG'; - case Paraguay = 'PRY'; - case Peru = 'PER'; - case Philippines = 'PHL'; - case Pitcairn = 'PCN'; - case Poland = 'POL'; - case Portugal = 'PRT'; - case Puerto_Rico = 'PRI'; - case Qatar = 'QAT'; - case Reunion = 'REU'; - case Romania = 'ROU'; - case Russian_Federation = 'RUS'; - case Rwanda = 'RWA'; - case Saint_Barthelemy = 'BLM'; - case Saint_Helena_Ascension_and_Tristan_da_Cunha = 'SHN'; - case Saint_Kitts_and_Nevis = 'KNA'; - case Saint_Lucia = 'LCA'; - case Saint_Martin_French_part = 'MAF'; - case Saint_Pierre_and_Miquelon = 'SPM'; - case Saint_Vincent_and_the_Grenadines = 'VCT'; - case Samoa = 'WSM'; - case San_Marino = 'SMR'; - case Sao_Tome_and_Principe = 'STP'; - case Saudi_Arabia = 'SAU'; - case Senegal = 'SEN'; - case Serbia = 'SRB'; - case Seychelles = 'SYC'; - case Sierra_Leone = 'SLE'; - case Singapore = 'SGP'; - case Sint_Maarten_Dutch_part = 'SXM'; - case Slovakia = 'SVK'; - case Slovenia = 'SVN'; - case Solomon_Islands = 'SLB'; - case Somalia = 'SOM'; - case South_Africa = 'ZAF'; - case South_Georgia_and_the_South_Sandwich_Islands = 'SGS'; - case South_Sudan = 'SSD'; - case Spain = 'ESP'; - case Sri_Lanka = 'LKA'; - case Sudan = 'SDN'; - case Suriname = 'SUR'; - case Svalbard_and_Jan_Mayen = 'SJM'; - case Sweden = 'SWE'; - case Switzerland = 'CHE'; - case Syrian_Arab_Republic = 'SYR'; - case Taiwan_Province_of_China = 'TWN'; - case Tajikistan = 'TJK'; - case Tanzania_the_United_Republic_of = 'TZA'; - case Thailand = 'THA'; - case Timor_Leste = 'TLS'; - case Togo = 'TGO'; - case Tokelau = 'TKL'; - case Tonga = 'TON'; - case Trinidad_and_Tobago = 'TTO'; - case Tunisia = 'TUN'; - case Turkey = 'TUR'; - case Turkmenistan = 'TKM'; - case Turks_and_Caicos_Islands = 'TCA'; - case Tuvalu = 'TUV'; - case Uganda = 'UGA'; - case Ukraine = 'UKR'; - case United_Arab_Emirates = 'ARE'; - case United_Kingdom = 'GBR'; - case United_States_Outlying_Islands = 'UMI'; - case United_States_of_America = 'USA'; - case Uruguay = 'URY'; - case Uzbekistan = 'UZB'; - case Vanuatu = 'VUT'; - case Venezuela_Bolivarian_Republic_of = 'VEN'; - case Viet_Nam = 'VNM'; - case Virgin_Islands_British = 'VGB'; - case Virgin_Islands_U_S = 'VIR'; - case Wallis_and_Futuna = 'WLF'; - case Western_Sahara = 'ESH'; - case Yemen = 'YEM'; - case Zambia = 'ZMB'; - case Zimbabwe = 'ZWE'; + case Afghanistan = 'AFG'; + case Aland_Islands = 'ALA'; + case Albania = 'ALB'; + case Algeria = 'DZA'; + case American_Samoa = 'ASM'; + case Andorra = 'AND'; + case Angola = 'AGO'; + case Anguilla = 'AIA'; + case Antarctica = 'ATA'; + case Antigua_and_Barbuda = 'ATG'; + case Argentina = 'ARG'; + case Armenia = 'ARM'; + case Aruba = 'ABW'; + case Australia = 'AUS'; + case Austria = 'AUT'; + case Azerbaijan = 'AZE'; + case Bahamas = 'BHS'; + case Bahrain = 'BHR'; + case Bangladesh = 'BGD'; + case Barbados = 'BRB'; + case Belarus = 'BLR'; + case Belgium = 'BEL'; + case Belize = 'BLZ'; + case Benin = 'BEN'; + case Bermuda = 'BMU'; + case Bhutan = 'BTN'; + case Bolivia = 'BOL'; + case Bonaire_Sint_Eustatius_and_Saba = 'BES'; + case Bosnia_and_Herzegovina = 'BIH'; + case Botswana = 'BWA'; + case Bouvet_Island = 'BVT'; + case Brazil = 'BRA'; + case British_Indian_Ocean_Territory = 'IOT'; + case Brunei_Darussalam = 'BRN'; + case Bulgaria = 'BGR'; + case Burkina_Faso = 'BFA'; + case Burundi = 'BDI'; + case Cabo_Verde = 'CPV'; + case Cambodia = 'KHM'; + case Cameroon = 'CMR'; + case Canada = 'CAN'; + case Cayman_Islands = 'CYM'; + case Central_African_Republic = 'CAF'; + case Chad = 'TCD'; + case Chile = 'CHL'; + case China = 'CHN'; + case Christmas_Island = 'CXR'; + case Cocos_Islands = 'CCK'; + case Colombia = 'COL'; + case Comoros = 'COM'; + case Congo = 'COG'; + case Congo_Democratic_Republic = 'COD'; + case Cook_Islands = 'COK'; + case Costa_Rica = 'CRI'; + case Cote_d_Ivoire = 'CIV'; + case Croatia = 'HRV'; + case Cuba = 'CUB'; + case Curacao = 'CUW'; + case Cyprus = 'CYP'; + case Czechia = 'CZE'; + case Denmark = 'DNK'; + case Djibouti = 'DJI'; + case Dominica = 'DMA'; + case Dominican_Republic = 'DOM'; + case Ecuador = 'ECU'; + case Egypt = 'EGY'; + case El_Salvador = 'SLV'; + case Equatorial_Guinea = 'GNQ'; + case Eritrea = 'ERI'; + case Estonia = 'EST'; + case Eswatini = 'SWZ'; + case Ethiopia = 'ETH'; + case Falkland_Islands = 'FLK'; + case Faroe_Islands = 'FRO'; + case Fiji = 'FJI'; + case Finland = 'FIN'; + case France = 'FRA'; + case French_Guiana = 'GUF'; + case French_Polynesia = 'PYF'; + case French_Southern_Territories = 'ATF'; + case Gabon = 'GAB'; + case Gambia = 'GMB'; + case Georgia = 'GEO'; + case Germany = 'DEU'; + case Ghana = 'GHA'; + case Gibraltar = 'GIB'; + case Greece = 'GRC'; + case Greenland = 'GRL'; + case Grenada = 'GRD'; + case Guadeloupe = 'GLP'; + case Guam = 'GUM'; + case Guatemala = 'GTM'; + case Guernsey = 'GGY'; + case Guinea = 'GIN'; + case Guinea_Bissau = 'GNB'; + case Guyana = 'GUY'; + case Haiti = 'HTI'; + case Heard_Island_and_McDonald_Islands = 'HMD'; + case Holy_See = 'VAT'; + case Honduras = 'HND'; + case Hong_Kong = 'HKG'; + case Hungary = 'HUN'; + case Iceland = 'ISL'; + case India = 'IND'; + case Indonesia = 'IDN'; + case Iran = 'IRN'; + case Iraq = 'IRQ'; + case Ireland = 'IRL'; + case Isle_of_Man = 'IMN'; + case Israel = 'ISR'; + case Italy = 'ITA'; + case Jamaica = 'JAM'; + case Japan = 'JPN'; + case Jersey = 'JEY'; + case Jordan = 'JOR'; + case Kazakhstan = 'KAZ'; + case Kenya = 'KEN'; + case Kiribati = 'KIR'; + case Korea_Democratic_Peoples_Republic = 'PRK'; + case Korea_Republic = 'KOR'; + case Kuwait = 'KWT'; + case Kyrgyzstan = 'KGZ'; + case Lao_Peoples_Democratic_Republic = 'LAO'; + case Latvia = 'LVA'; + case Lebanon = 'LBN'; + case Lesotho = 'LSO'; + case Liberia = 'LBR'; + case Libya = 'LBY'; + case Liechtenstein = 'LIE'; + case Lithuania = 'LTU'; + case Luxembourg = 'LUX'; + case Macao = 'MAC'; + case Madagascar = 'MDG'; + case Malawi = 'MWI'; + case Malaysia = 'MYS'; + case Maldives = 'MDV'; + case Mali = 'MLI'; + case Malta = 'MLT'; + case Marshall_Islands = 'MHL'; + case Martinique = 'MTQ'; + case Mauritania = 'MRT'; + case Mauritius = 'MUS'; + case Mayotte = 'MYT'; + case Mexico = 'MEX'; + case Micronesia = 'FSM'; + case Moldova = 'MDA'; + case Monaco = 'MCO'; + case Mongolia = 'MNG'; + case Montenegro = 'MNE'; + case Montserrat = 'MSR'; + case Morocco = 'MAR'; + case Mozambique = 'MOZ'; + case Myanmar = 'MMR'; + case Namibia = 'NAM'; + case Nauru = 'NRU'; + case Nepal = 'NPL'; + case Netherlands = 'NLD'; + case New_Caledonia = 'NCL'; + case New_Zealand = 'NZL'; + case Nicaragua = 'NIC'; + case Niger = 'NER'; + case Nigeria = 'NGA'; + case Niue = 'NIU'; + case Norfolk_Island = 'NFK'; + case North_Macedonia = 'MKD'; + case Northern_Mariana_Islands = 'MNP'; + case Norway = 'NOR'; + case Oman = 'OMN'; + case Pakistan = 'PAK'; + case Palau = 'PLW'; + case Palestine = 'PSE'; + case Panama = 'PAN'; + case Papua_New_Guinea = 'PNG'; + case Paraguay = 'PRY'; + case Peru = 'PER'; + case Philippines = 'PHL'; + case Pitcairn = 'PCN'; + case Poland = 'POL'; + case Portugal = 'PRT'; + case Puerto_Rico = 'PRI'; + case Qatar = 'QAT'; + case Reunion = 'REU'; + case Romania = 'ROU'; + case Russian_Federation = 'RUS'; + case Rwanda = 'RWA'; + case Saint_Barthelemy = 'BLM'; + case Saint_Helena_Ascension_Tristan_da_Cunha = 'SHN'; + case Saint_Kitts_and_Nevis = 'KNA'; + case Saint_Lucia = 'LCA'; + case Saint_Martin_French_part = 'MAF'; + case Saint_Pierre_and_Miquelon = 'SPM'; + case Saint_Vincent_and_the_Grenadines = 'VCT'; + case Samoa = 'WSM'; + case San_Marino = 'SMR'; + case Sao_Tome_and_Principe = 'STP'; + case Saudi_Arabia = 'SAU'; + case Senegal = 'SEN'; + case Serbia = 'SRB'; + case Seychelles = 'SYC'; + case Sierra_Leone = 'SLE'; + case Singapore = 'SGP'; + case Sint_Maarten_Dutch_part = 'SXM'; + case Slovakia = 'SVK'; + case Slovenia = 'SVN'; + case Solomon_Islands = 'SLB'; + case Somalia = 'SOM'; + case South_Africa = 'ZAF'; + case South_Georgia_South_Sandwich_Islands = 'SGS'; + case South_Sudan = 'SSD'; + case Spain = 'ESP'; + case Sri_Lanka = 'LKA'; + case Sudan = 'SDN'; + case Suriname = 'SUR'; + case Svalbard_Jan_Mayen = 'SJM'; + case Sweden = 'SWE'; + case Switzerland = 'CHE'; + case Syrian_Arab_Republic = 'SYR'; + case Taiwan_Province_of_China = 'TWN'; + case Tajikistan = 'TJK'; + case Tanzania = 'TZA'; + case Thailand = 'THA'; + case Timor_Leste = 'TLS'; + case Togo = 'TGO'; + case Tokelau = 'TKL'; + case Tonga = 'TON'; + case Trinidad_and_Tobago = 'TTO'; + case Tunisia = 'TUN'; + case Turkey = 'TUR'; + case Turkmenistan = 'TKM'; + case Turks_and_Caicos_Islands = 'TCA'; + case Tuvalu = 'TUV'; + case Uganda = 'UGA'; + case Ukraine = 'UKR'; + case United_Arab_Emirates = 'ARE'; + case United_Kingdom = 'GBR'; + case United_States_Outlying_Islands = 'UMI'; + case United_States_of_America = 'USA'; + case Uruguay = 'URY'; + case Uzbekistan = 'UZB'; + case Vanuatu = 'VUT'; + case Venezuela = 'VEN'; + case Viet_Nam = 'VNM'; + case Virgin_Islands_British = 'VGB'; + case Virgin_Islands_U_S = 'VIR'; + case Wallis_and_Futuna = 'WLF'; + case Western_Sahara = 'ESH'; + case Yemen = 'YEM'; + case Zambia = 'ZMB'; + case Zimbabwe = 'ZWE'; public function toISO3166_1_Alpha_2(): CountryAlpha2 { diff --git a/src/CountryShort/CountryName.php b/src/CountryShort/CountryName.php index f1dff049..cca957e2 100644 --- a/src/CountryShort/CountryName.php +++ b/src/CountryShort/CountryName.php @@ -10,255 +10,255 @@ */ enum CountryName: string { - case Afghanistan = 'Afghanistan'; - case Aland_Islands = 'Åland Islands'; - case Albania = 'Albania'; - case Algeria = 'Algeria'; - case American_Samoa = 'American Samoa'; - case Andorra = 'Andorra'; - case Angola = 'Angola'; - case Anguilla = 'Anguilla'; - case Antarctica = 'Antarctica'; - case Antigua_and_Barbuda = 'Antigua and Barbuda'; - case Argentina = 'Argentina'; - case Armenia = 'Armenia'; - case Aruba = 'Aruba'; - case Australia = 'Australia'; - case Austria = 'Austria'; - case Azerbaijan = 'Azerbaijan'; - case Bahamas = 'Bahamas (the)'; - case Bahrain = 'Bahrain'; - case Bangladesh = 'Bangladesh'; - case Barbados = 'Barbados'; - case Belarus = 'Belarus'; - case Belgium = 'Belgium'; - case Belize = 'Belize'; - case Benin = 'Benin'; - case Bermuda = 'Bermuda'; - case Bhutan = 'Bhutan'; - case Bolivia_Plurinational_State_of = 'Bolivia (Plurinational State of)'; - case Bonaire_Sint_Eustatius_and_Saba = 'Bonaire, Sint Eustatius and Saba'; - case Bosnia_and_Herzegovina = 'Bosnia and Herzegovina'; - case Botswana = 'Botswana'; - case Bouvet_Island = 'Bouvet Island'; - case Brazil = 'Brazil'; - case British_Indian_Ocean_Territory = 'British Indian Ocean Territory (the)'; - case Brunei_Darussalam = 'Brunei Darussalam'; - case Bulgaria = 'Bulgaria'; - case Burkina_Faso = 'Burkina Faso'; - case Burundi = 'Burundi'; - case Cabo_Verde = 'Cabo Verde'; - case Cambodia = 'Cambodia'; - case Cameroon = 'Cameroon'; - case Canada = 'Canada'; - case Cayman_Islands = 'Cayman Islands (the)'; - case Central_African_Republic = 'Central African Republic (the)'; - case Chad = 'Chad'; - case Chile = 'Chile'; - case China = 'China'; - case Christmas_Island = 'Christmas Island'; - case Cocos_Keeling_Islands = 'Cocos (Keeling) Islands (the)'; - case Colombia = 'Colombia'; - case Comoros = 'Comoros (the)'; - case Congo = 'Congo (the)'; - case Congo_the_Democratic_Republic_of = 'Congo (the Democratic Republic of the)'; - case Cook_Islands = 'Cook Islands (the)'; - case Costa_Rica = 'Costa Rica'; - case Cote_d_Ivoire = 'Côte d\'Ivoire'; - case Croatia = 'Croatia'; - case Cuba = 'Cuba'; - case Curacao = 'Curaçao'; - case Cyprus = 'Cyprus'; - case Czechia = 'Czechia'; - case Denmark = 'Denmark'; - case Djibouti = 'Djibouti'; - case Dominica = 'Dominica'; - case Dominican_Republic = 'Dominican Republic (the)'; - case Ecuador = 'Ecuador'; - case Egypt = 'Egypt'; - case El_Salvador = 'El Salvador'; - case Equatorial_Guinea = 'Equatorial Guinea'; - case Eritrea = 'Eritrea'; - case Estonia = 'Estonia'; - case Eswatini = 'Eswatini'; - case Ethiopia = 'Ethiopia'; - case Falkland_Islands_the_Malvinas = 'Falkland Islands (the) [Malvinas]'; - case Faroe_Islands = 'Faroe Islands (the)'; - case Fiji = 'Fiji'; - case Finland = 'Finland'; - case France = 'France'; - case French_Guiana = 'French Guiana'; - case French_Polynesia = 'French Polynesia'; - case French_Southern_Territories = 'French Southern Territories (the)'; - case Gabon = 'Gabon'; - case Gambia = 'Gambia (the)'; - case Georgia = 'Georgia'; - case Germany = 'Germany'; - case Ghana = 'Ghana'; - case Gibraltar = 'Gibraltar'; - case Greece = 'Greece'; - case Greenland = 'Greenland'; - case Grenada = 'Grenada'; - case Guadeloupe = 'Guadeloupe'; - case Guam = 'Guam'; - case Guatemala = 'Guatemala'; - case Guernsey = 'Guernsey'; - case Guinea = 'Guinea'; - case Guinea_Bissau = 'Guinea-Bissau'; - case Guyana = 'Guyana'; - case Haiti = 'Haiti'; - case Heard_Island_and_McDonald_Islands = 'Heard Island and McDonald Islands'; - case Holy_See = 'Holy See (the)'; - case Honduras = 'Honduras'; - case Hong_Kong = 'Hong Kong'; - case Hungary = 'Hungary'; - case Iceland = 'Iceland'; - case India = 'India'; - case Indonesia = 'Indonesia'; - case Iran_Islamic_Republic_of = 'Iran (Islamic Republic of)'; - case Iraq = 'Iraq'; - case Ireland = 'Ireland'; - case Isle_of_Man = 'Isle of Man'; - case Israel = 'Israel'; - case Italy = 'Italy'; - case Jamaica = 'Jamaica'; - case Japan = 'Japan'; - case Jersey = 'Jersey'; - case Jordan = 'Jordan'; - case Kazakhstan = 'Kazakhstan'; - case Kenya = 'Kenya'; - case Kiribati = 'Kiribati'; - case Korea_the_Democratic_People_s_Republic_of = 'Korea (the Democratic People\'s Republic of)'; - case Korea_the_Republic_of = 'Korea (the Republic of)'; - case Kuwait = 'Kuwait'; - case Kyrgyzstan = 'Kyrgyzstan'; - case Lao_People_s_Democratic_Republic = 'Lao People\'s Democratic Republic (the)'; - case Latvia = 'Latvia'; - case Lebanon = 'Lebanon'; - case Lesotho = 'Lesotho'; - case Liberia = 'Liberia'; - case Libya = 'Libya'; - case Liechtenstein = 'Liechtenstein'; - case Lithuania = 'Lithuania'; - case Luxembourg = 'Luxembourg'; - case Macao = 'Macao'; - case Madagascar = 'Madagascar'; - case Malawi = 'Malawi'; - case Malaysia = 'Malaysia'; - case Maldives = 'Maldives'; - case Mali = 'Mali'; - case Malta = 'Malta'; - case Marshall_Islands = 'Marshall Islands (the)'; - case Martinique = 'Martinique'; - case Mauritania = 'Mauritania'; - case Mauritius = 'Mauritius'; - case Mayotte = 'Mayotte'; - case Mexico = 'Mexico'; - case Micronesia_Federated_States_of = 'Micronesia (Federated States of)'; - case Moldova_the_Republic_of = 'Moldova (the Republic of)'; - case Monaco = 'Monaco'; - case Mongolia = 'Mongolia'; - case Montenegro = 'Montenegro'; - case Montserrat = 'Montserrat'; - case Morocco = 'Morocco'; - case Mozambique = 'Mozambique'; - case Myanmar = 'Myanmar'; - case Namibia = 'Namibia'; - case Nauru = 'Nauru'; - case Nepal = 'Nepal'; - case Netherlands = 'Netherlands (the)'; - case New_Caledonia = 'New Caledonia'; - case New_Zealand = 'New Zealand'; - case Nicaragua = 'Nicaragua'; - case Niger = 'Niger (the)'; - case Nigeria = 'Nigeria'; - case Niue = 'Niue'; - case Norfolk_Island = 'Norfolk Island'; - case North_Macedonia = 'North Macedonia'; - case Northern_Mariana_Islands = 'Northern Mariana Islands (the)'; - case Norway = 'Norway'; - case Oman = 'Oman'; - case Pakistan = 'Pakistan'; - case Palau = 'Palau'; - case Palestine_State_of = 'Palestine, State of'; - case Panama = 'Panama'; - case Papua_New_Guinea = 'Papua New Guinea'; - case Paraguay = 'Paraguay'; - case Peru = 'Peru'; - case Philippines = 'Philippines (the)'; - case Pitcairn = 'Pitcairn'; - case Poland = 'Poland'; - case Portugal = 'Portugal'; - case Puerto_Rico = 'Puerto Rico'; - case Qatar = 'Qatar'; - case Reunion = 'Réunion'; - case Romania = 'Romania'; - case Russian_Federation = 'Russian Federation (the)'; - case Rwanda = 'Rwanda'; - case Saint_Barthelemy = 'Saint Barthélemy'; - case Saint_Helena_Ascension_and_Tristan_da_Cunha = 'Saint Helena, Ascension and Tristan da Cunha'; - case Saint_Kitts_and_Nevis = 'Saint Kitts and Nevis'; - case Saint_Lucia = 'Saint Lucia'; - case Saint_Martin_French_part = 'Saint Martin (French part)'; - case Saint_Pierre_and_Miquelon = 'Saint Pierre and Miquelon'; - case Saint_Vincent_and_the_Grenadines = 'Saint Vincent and the Grenadines'; - case Samoa = 'Samoa'; - case San_Marino = 'San Marino'; - case Sao_Tome_and_Principe = 'Sao Tome and Principe'; - case Saudi_Arabia = 'Saudi Arabia'; - case Senegal = 'Senegal'; - case Serbia = 'Serbia'; - case Seychelles = 'Seychelles'; - case Sierra_Leone = 'Sierra Leone'; - case Singapore = 'Singapore'; - case Sint_Maarten_Dutch_part = 'Sint Maarten (Dutch part)'; - case Slovakia = 'Slovakia'; - case Slovenia = 'Slovenia'; - case Solomon_Islands = 'Solomon Islands'; - case Somalia = 'Somalia'; - case South_Africa = 'South Africa'; - case South_Georgia_and_the_South_Sandwich_Islands = 'South Georgia and the South Sandwich Islands'; - case South_Sudan = 'South Sudan'; - case Spain = 'Spain'; - case Sri_Lanka = 'Sri Lanka'; - case Sudan = 'Sudan (the)'; - case Suriname = 'Suriname'; - case Svalbard_and_Jan_Mayen = 'Svalbard and Jan Mayen'; - case Sweden = 'Sweden'; - case Switzerland = 'Switzerland'; - case Syrian_Arab_Republic = 'Syrian Arab Republic (the)'; - case Taiwan_Province_of_China = 'Taiwan (Province of China)'; - case Tajikistan = 'Tajikistan'; - case Tanzania_the_United_Republic_of = 'Tanzania, the United Republic of'; - case Thailand = 'Thailand'; - case Timor_Leste = 'Timor-Leste'; - case Togo = 'Togo'; - case Tokelau = 'Tokelau'; - case Tonga = 'Tonga'; - case Trinidad_and_Tobago = 'Trinidad and Tobago'; - case Tunisia = 'Tunisia'; - case Turkey = 'Türkiye'; - case Turkmenistan = 'Turkmenistan'; - case Turks_and_Caicos_Islands = 'Turks and Caicos Islands (the)'; - case Tuvalu = 'Tuvalu'; - case Uganda = 'Uganda'; - case Ukraine = 'Ukraine'; - case United_Arab_Emirates = 'United Arab Emirates (the)'; - case United_Kingdom = 'United Kingdom of Great Britain and Northern Ireland (the)'; - case United_States_Outlying_Islands = 'United States Minor Outlying Islands (the)'; - case United_States_of_America = 'United States of America (the)'; - case Uruguay = 'Uruguay'; - case Uzbekistan = 'Uzbekistan'; - case Vanuatu = 'Vanuatu'; - case Venezuela_Bolivarian_Republic_of = 'Venezuela (Bolivarian Republic of)'; - case Viet_Nam = 'Viet Nam'; - case Virgin_Islands_British = 'Virgin Islands (British)'; - case Virgin_Islands_U_S = 'Virgin Islands (U.S.)'; - case Wallis_and_Futuna = 'Wallis and Futuna'; - case Western_Sahara = 'Western Sahara*'; - case Yemen = 'Yemen'; - case Zambia = 'Zambia'; - case Zimbabwe = 'Zimbabwe'; + case Afghanistan = 'Afghanistan'; + case Aland_Islands = 'Åland Islands'; + case Albania = 'Albania'; + case Algeria = 'Algeria'; + case American_Samoa = 'American Samoa'; + case Andorra = 'Andorra'; + case Angola = 'Angola'; + case Anguilla = 'Anguilla'; + case Antarctica = 'Antarctica'; + case Antigua_and_Barbuda = 'Antigua and Barbuda'; + case Argentina = 'Argentina'; + case Armenia = 'Armenia'; + case Aruba = 'Aruba'; + case Australia = 'Australia'; + case Austria = 'Austria'; + case Azerbaijan = 'Azerbaijan'; + case Bahamas = 'Bahamas (the)'; + case Bahrain = 'Bahrain'; + case Bangladesh = 'Bangladesh'; + case Barbados = 'Barbados'; + case Belarus = 'Belarus'; + case Belgium = 'Belgium'; + case Belize = 'Belize'; + case Benin = 'Benin'; + case Bermuda = 'Bermuda'; + case Bhutan = 'Bhutan'; + case Bolivia = 'Bolivia (Plurinational State of)'; + case Bonaire_Sint_Eustatius_and_Saba = 'Bonaire, Sint Eustatius and Saba'; + case Bosnia_and_Herzegovina = 'Bosnia and Herzegovina'; + case Botswana = 'Botswana'; + case Bouvet_Island = 'Bouvet Island'; + case Brazil = 'Brazil'; + case British_Indian_Ocean_Territory = 'British Indian Ocean Territory (the)'; + case Brunei_Darussalam = 'Brunei Darussalam'; + case Bulgaria = 'Bulgaria'; + case Burkina_Faso = 'Burkina Faso'; + case Burundi = 'Burundi'; + case Cabo_Verde = 'Cabo Verde'; + case Cambodia = 'Cambodia'; + case Cameroon = 'Cameroon'; + case Canada = 'Canada'; + case Cayman_Islands = 'Cayman Islands (the)'; + case Central_African_Republic = 'Central African Republic (the)'; + case Chad = 'Chad'; + case Chile = 'Chile'; + case China = 'China'; + case Christmas_Island = 'Christmas Island'; + case Cocos_Islands = 'Cocos (Keeling) Islands (the)'; + case Colombia = 'Colombia'; + case Comoros = 'Comoros (the)'; + case Congo = 'Congo (the)'; + case Congo_Democratic_Republic = 'Congo (the Democratic Republic of the)'; + case Cook_Islands = 'Cook Islands (the)'; + case Costa_Rica = 'Costa Rica'; + case Cote_d_Ivoire = 'Côte d\'Ivoire'; + case Croatia = 'Croatia'; + case Cuba = 'Cuba'; + case Curacao = 'Curaçao'; + case Cyprus = 'Cyprus'; + case Czechia = 'Czechia'; + case Denmark = 'Denmark'; + case Djibouti = 'Djibouti'; + case Dominica = 'Dominica'; + case Dominican_Republic = 'Dominican Republic (the)'; + case Ecuador = 'Ecuador'; + case Egypt = 'Egypt'; + case El_Salvador = 'El Salvador'; + case Equatorial_Guinea = 'Equatorial Guinea'; + case Eritrea = 'Eritrea'; + case Estonia = 'Estonia'; + case Eswatini = 'Eswatini'; + case Ethiopia = 'Ethiopia'; + case Falkland_Islands = 'Falkland Islands (the) [Malvinas]'; + case Faroe_Islands = 'Faroe Islands (the)'; + case Fiji = 'Fiji'; + case Finland = 'Finland'; + case France = 'France'; + case French_Guiana = 'French Guiana'; + case French_Polynesia = 'French Polynesia'; + case French_Southern_Territories = 'French Southern Territories (the)'; + case Gabon = 'Gabon'; + case Gambia = 'Gambia (the)'; + case Georgia = 'Georgia'; + case Germany = 'Germany'; + case Ghana = 'Ghana'; + case Gibraltar = 'Gibraltar'; + case Greece = 'Greece'; + case Greenland = 'Greenland'; + case Grenada = 'Grenada'; + case Guadeloupe = 'Guadeloupe'; + case Guam = 'Guam'; + case Guatemala = 'Guatemala'; + case Guernsey = 'Guernsey'; + case Guinea = 'Guinea'; + case Guinea_Bissau = 'Guinea-Bissau'; + case Guyana = 'Guyana'; + case Haiti = 'Haiti'; + case Heard_Island_and_McDonald_Islands = 'Heard Island and McDonald Islands'; + case Holy_See = 'Holy See (the)'; + case Honduras = 'Honduras'; + case Hong_Kong = 'Hong Kong'; + case Hungary = 'Hungary'; + case Iceland = 'Iceland'; + case India = 'India'; + case Indonesia = 'Indonesia'; + case Iran = 'Iran (Islamic Republic of)'; + case Iraq = 'Iraq'; + case Ireland = 'Ireland'; + case Isle_of_Man = 'Isle of Man'; + case Israel = 'Israel'; + case Italy = 'Italy'; + case Jamaica = 'Jamaica'; + case Japan = 'Japan'; + case Jersey = 'Jersey'; + case Jordan = 'Jordan'; + case Kazakhstan = 'Kazakhstan'; + case Kenya = 'Kenya'; + case Kiribati = 'Kiribati'; + case Korea_Democratic_Peoples_Republic = 'Korea (the Democratic People\'s Republic of)'; + case Korea_Republic = 'Korea (the Republic of)'; + case Kuwait = 'Kuwait'; + case Kyrgyzstan = 'Kyrgyzstan'; + case Lao_Peoples_Democratic_Republic = 'Lao People\'s Democratic Republic (the)'; + case Latvia = 'Latvia'; + case Lebanon = 'Lebanon'; + case Lesotho = 'Lesotho'; + case Liberia = 'Liberia'; + case Libya = 'Libya'; + case Liechtenstein = 'Liechtenstein'; + case Lithuania = 'Lithuania'; + case Luxembourg = 'Luxembourg'; + case Macao = 'Macao'; + case Madagascar = 'Madagascar'; + case Malawi = 'Malawi'; + case Malaysia = 'Malaysia'; + case Maldives = 'Maldives'; + case Mali = 'Mali'; + case Malta = 'Malta'; + case Marshall_Islands = 'Marshall Islands (the)'; + case Martinique = 'Martinique'; + case Mauritania = 'Mauritania'; + case Mauritius = 'Mauritius'; + case Mayotte = 'Mayotte'; + case Mexico = 'Mexico'; + case Micronesia = 'Micronesia (Federated States of)'; + case Moldova = 'Moldova (the Republic of)'; + case Monaco = 'Monaco'; + case Mongolia = 'Mongolia'; + case Montenegro = 'Montenegro'; + case Montserrat = 'Montserrat'; + case Morocco = 'Morocco'; + case Mozambique = 'Mozambique'; + case Myanmar = 'Myanmar'; + case Namibia = 'Namibia'; + case Nauru = 'Nauru'; + case Nepal = 'Nepal'; + case Netherlands = 'Netherlands (the)'; + case New_Caledonia = 'New Caledonia'; + case New_Zealand = 'New Zealand'; + case Nicaragua = 'Nicaragua'; + case Niger = 'Niger (the)'; + case Nigeria = 'Nigeria'; + case Niue = 'Niue'; + case Norfolk_Island = 'Norfolk Island'; + case North_Macedonia = 'North Macedonia'; + case Northern_Mariana_Islands = 'Northern Mariana Islands (the)'; + case Norway = 'Norway'; + case Oman = 'Oman'; + case Pakistan = 'Pakistan'; + case Palau = 'Palau'; + case Palestine = 'Palestine, State of'; + case Panama = 'Panama'; + case Papua_New_Guinea = 'Papua New Guinea'; + case Paraguay = 'Paraguay'; + case Peru = 'Peru'; + case Philippines = 'Philippines (the)'; + case Pitcairn = 'Pitcairn'; + case Poland = 'Poland'; + case Portugal = 'Portugal'; + case Puerto_Rico = 'Puerto Rico'; + case Qatar = 'Qatar'; + case Reunion = 'Réunion'; + case Romania = 'Romania'; + case Russian_Federation = 'Russian Federation (the)'; + case Rwanda = 'Rwanda'; + case Saint_Barthelemy = 'Saint Barthélemy'; + case Saint_Helena_Ascension_Tristan_da_Cunha = 'Saint Helena, Ascension and Tristan da Cunha'; + case Saint_Kitts_and_Nevis = 'Saint Kitts and Nevis'; + case Saint_Lucia = 'Saint Lucia'; + case Saint_Martin_French_part = 'Saint Martin (French part)'; + case Saint_Pierre_and_Miquelon = 'Saint Pierre and Miquelon'; + case Saint_Vincent_and_the_Grenadines = 'Saint Vincent and the Grenadines'; + case Samoa = 'Samoa'; + case San_Marino = 'San Marino'; + case Sao_Tome_and_Principe = 'Sao Tome and Principe'; + case Saudi_Arabia = 'Saudi Arabia'; + case Senegal = 'Senegal'; + case Serbia = 'Serbia'; + case Seychelles = 'Seychelles'; + case Sierra_Leone = 'Sierra Leone'; + case Singapore = 'Singapore'; + case Sint_Maarten_Dutch_part = 'Sint Maarten (Dutch part)'; + case Slovakia = 'Slovakia'; + case Slovenia = 'Slovenia'; + case Solomon_Islands = 'Solomon Islands'; + case Somalia = 'Somalia'; + case South_Africa = 'South Africa'; + case South_Georgia_South_Sandwich_Islands = 'South Georgia and the South Sandwich Islands'; + case South_Sudan = 'South Sudan'; + case Spain = 'Spain'; + case Sri_Lanka = 'Sri Lanka'; + case Sudan = 'Sudan (the)'; + case Suriname = 'Suriname'; + case Svalbard_Jan_Mayen = 'Svalbard and Jan Mayen'; + case Sweden = 'Sweden'; + case Switzerland = 'Switzerland'; + case Syrian_Arab_Republic = 'Syrian Arab Republic (the)'; + case Taiwan_Province_of_China = 'Taiwan (Province of China)'; + case Tajikistan = 'Tajikistan'; + case Tanzania = 'Tanzania, the United Republic of'; + case Thailand = 'Thailand'; + case Timor_Leste = 'Timor-Leste'; + case Togo = 'Togo'; + case Tokelau = 'Tokelau'; + case Tonga = 'Tonga'; + case Trinidad_and_Tobago = 'Trinidad and Tobago'; + case Tunisia = 'Tunisia'; + case Turkey = 'Türkiye'; + case Turkmenistan = 'Turkmenistan'; + case Turks_and_Caicos_Islands = 'Turks and Caicos Islands (the)'; + case Tuvalu = 'Tuvalu'; + case Uganda = 'Uganda'; + case Ukraine = 'Ukraine'; + case United_Arab_Emirates = 'United Arab Emirates (the)'; + case United_Kingdom = 'United Kingdom of Great Britain and Northern Ireland (the)'; + case United_States_Outlying_Islands = 'United States Minor Outlying Islands (the)'; + case United_States_of_America = 'United States of America (the)'; + case Uruguay = 'Uruguay'; + case Uzbekistan = 'Uzbekistan'; + case Vanuatu = 'Vanuatu'; + case Venezuela = 'Venezuela (Bolivarian Republic of)'; + case Viet_Nam = 'Viet Nam'; + case Virgin_Islands_British = 'Virgin Islands (British)'; + case Virgin_Islands_U_S = 'Virgin Islands (U.S.)'; + case Wallis_and_Futuna = 'Wallis and Futuna'; + case Western_Sahara = 'Western Sahara*'; + case Yemen = 'Yemen'; + case Zambia = 'Zambia'; + case Zimbabwe = 'Zimbabwe'; public function toISO3166_1_Alpha_2(): CountryAlpha2 { diff --git a/src/CountryShort/CountryNumeric.php b/src/CountryShort/CountryNumeric.php index 6debeb3b..b9aed93b 100644 --- a/src/CountryShort/CountryNumeric.php +++ b/src/CountryShort/CountryNumeric.php @@ -10,255 +10,255 @@ */ enum CountryNumeric: string { - case Afghanistan = '004'; - case Aland_Islands = '248'; - case Albania = '008'; - case Algeria = '012'; - case American_Samoa = '016'; - case Andorra = '020'; - case Angola = '024'; - case Anguilla = '660'; - case Antarctica = '010'; - case Antigua_and_Barbuda = '028'; - case Argentina = '032'; - case Armenia = '051'; - case Aruba = '533'; - case Australia = '036'; - case Austria = '040'; - case Azerbaijan = '031'; - case Bahamas = '044'; - case Bahrain = '048'; - case Bangladesh = '050'; - case Barbados = '052'; - case Belarus = '112'; - case Belgium = '056'; - case Belize = '084'; - case Benin = '204'; - case Bermuda = '060'; - case Bhutan = '064'; - case Bolivia_Plurinational_State_of = '068'; - case Bonaire_Sint_Eustatius_and_Saba = '535'; - case Bosnia_and_Herzegovina = '070'; - case Botswana = '072'; - case Bouvet_Island = '074'; - case Brazil = '076'; - case British_Indian_Ocean_Territory = '086'; - case Brunei_Darussalam = '096'; - case Bulgaria = '100'; - case Burkina_Faso = '854'; - case Burundi = '108'; - case Cabo_Verde = '132'; - case Cambodia = '116'; - case Cameroon = '120'; - case Canada = '124'; - case Cayman_Islands = '136'; - case Central_African_Republic = '140'; - case Chad = '148'; - case Chile = '152'; - case China = '156'; - case Christmas_Island = '162'; - case Cocos_Keeling_Islands = '166'; - case Colombia = '170'; - case Comoros = '174'; - case Congo = '178'; - case Congo_the_Democratic_Republic_of = '180'; - case Cook_Islands = '184'; - case Costa_Rica = '188'; - case Cote_d_Ivoire = '384'; - case Croatia = '191'; - case Cuba = '192'; - case Curacao = '531'; - case Cyprus = '196'; - case Czechia = '203'; - case Denmark = '208'; - case Djibouti = '262'; - case Dominica = '212'; - case Dominican_Republic = '214'; - case Ecuador = '218'; - case Egypt = '818'; - case El_Salvador = '222'; - case Equatorial_Guinea = '226'; - case Eritrea = '232'; - case Estonia = '233'; - case Eswatini = '748'; - case Ethiopia = '231'; - case Falkland_Islands_the_Malvinas = '238'; - case Faroe_Islands = '234'; - case Fiji = '242'; - case Finland = '246'; - case France = '250'; - case French_Guiana = '254'; - case French_Polynesia = '258'; - case French_Southern_Territories = '260'; - case Gabon = '266'; - case Gambia = '270'; - case Georgia = '268'; - case Germany = '276'; - case Ghana = '288'; - case Gibraltar = '292'; - case Greece = '300'; - case Greenland = '304'; - case Grenada = '308'; - case Guadeloupe = '312'; - case Guam = '316'; - case Guatemala = '320'; - case Guernsey = '831'; - case Guinea = '324'; - case Guinea_Bissau = '624'; - case Guyana = '328'; - case Haiti = '332'; - case Heard_Island_and_McDonald_Islands = '334'; - case Holy_See = '336'; - case Honduras = '340'; - case Hong_Kong = '344'; - case Hungary = '348'; - case Iceland = '352'; - case India = '356'; - case Indonesia = '360'; - case Iran_Islamic_Republic_of = '364'; - case Iraq = '368'; - case Ireland = '372'; - case Isle_of_Man = '833'; - case Israel = '376'; - case Italy = '380'; - case Jamaica = '388'; - case Japan = '392'; - case Jersey = '832'; - case Jordan = '400'; - case Kazakhstan = '398'; - case Kenya = '404'; - case Kiribati = '296'; - case Korea_the_Democratic_People_s_Republic_of = '408'; - case Korea_the_Republic_of = '410'; - case Kuwait = '414'; - case Kyrgyzstan = '417'; - case Lao_People_s_Democratic_Republic = '418'; - case Latvia = '428'; - case Lebanon = '422'; - case Lesotho = '426'; - case Liberia = '430'; - case Libya = '434'; - case Liechtenstein = '438'; - case Lithuania = '440'; - case Luxembourg = '442'; - case Macao = '446'; - case Madagascar = '450'; - case Malawi = '454'; - case Malaysia = '458'; - case Maldives = '462'; - case Mali = '466'; - case Malta = '470'; - case Marshall_Islands = '584'; - case Martinique = '474'; - case Mauritania = '478'; - case Mauritius = '480'; - case Mayotte = '175'; - case Mexico = '484'; - case Micronesia_Federated_States_of = '583'; - case Moldova_the_Republic_of = '498'; - case Monaco = '492'; - case Mongolia = '496'; - case Montenegro = '499'; - case Montserrat = '500'; - case Morocco = '504'; - case Mozambique = '508'; - case Myanmar = '104'; - case Namibia = '516'; - case Nauru = '520'; - case Nepal = '524'; - case Netherlands = '528'; - case New_Caledonia = '540'; - case New_Zealand = '554'; - case Nicaragua = '558'; - case Niger = '562'; - case Nigeria = '566'; - case Niue = '570'; - case Norfolk_Island = '574'; - case North_Macedonia = '807'; - case Northern_Mariana_Islands = '580'; - case Norway = '578'; - case Oman = '512'; - case Pakistan = '586'; - case Palau = '585'; - case Palestine_State_of = '275'; - case Panama = '591'; - case Papua_New_Guinea = '598'; - case Paraguay = '600'; - case Peru = '604'; - case Philippines = '608'; - case Pitcairn = '612'; - case Poland = '616'; - case Portugal = '620'; - case Puerto_Rico = '630'; - case Qatar = '634'; - case Reunion = '638'; - case Romania = '642'; - case Russian_Federation = '643'; - case Rwanda = '646'; - case Saint_Barthelemy = '652'; - case Saint_Helena_Ascension_and_Tristan_da_Cunha = '654'; - case Saint_Kitts_and_Nevis = '659'; - case Saint_Lucia = '662'; - case Saint_Martin_French_part = '663'; - case Saint_Pierre_and_Miquelon = '666'; - case Saint_Vincent_and_the_Grenadines = '670'; - case Samoa = '882'; - case San_Marino = '674'; - case Sao_Tome_and_Principe = '678'; - case Saudi_Arabia = '682'; - case Senegal = '686'; - case Serbia = '688'; - case Seychelles = '690'; - case Sierra_Leone = '694'; - case Singapore = '702'; - case Sint_Maarten_Dutch_part = '534'; - case Slovakia = '703'; - case Slovenia = '705'; - case Solomon_Islands = '090'; - case Somalia = '706'; - case South_Africa = '710'; - case South_Georgia_and_the_South_Sandwich_Islands = '239'; - case South_Sudan = '728'; - case Spain = '724'; - case Sri_Lanka = '144'; - case Sudan = '729'; - case Suriname = '740'; - case Svalbard_and_Jan_Mayen = '744'; - case Sweden = '752'; - case Switzerland = '756'; - case Syrian_Arab_Republic = '760'; - case Taiwan_Province_of_China = '158'; - case Tajikistan = '762'; - case Tanzania_the_United_Republic_of = '834'; - case Thailand = '764'; - case Timor_Leste = '626'; - case Togo = '768'; - case Tokelau = '772'; - case Tonga = '776'; - case Trinidad_and_Tobago = '780'; - case Tunisia = '788'; - case Turkey = '792'; - case Turkmenistan = '795'; - case Turks_and_Caicos_Islands = '796'; - case Tuvalu = '798'; - case Uganda = '800'; - case Ukraine = '804'; - case United_Arab_Emirates = '784'; - case United_Kingdom = '826'; - case United_States_Outlying_Islands = '581'; - case United_States_of_America = '840'; - case Uruguay = '858'; - case Uzbekistan = '860'; - case Vanuatu = '548'; - case Venezuela_Bolivarian_Republic_of = '862'; - case Viet_Nam = '704'; - case Virgin_Islands_British = '092'; - case Virgin_Islands_U_S = '850'; - case Wallis_and_Futuna = '876'; - case Western_Sahara = '732'; - case Yemen = '887'; - case Zambia = '894'; - case Zimbabwe = '716'; + case Afghanistan = '004'; + case Aland_Islands = '248'; + case Albania = '008'; + case Algeria = '012'; + case American_Samoa = '016'; + case Andorra = '020'; + case Angola = '024'; + case Anguilla = '660'; + case Antarctica = '010'; + case Antigua_and_Barbuda = '028'; + case Argentina = '032'; + case Armenia = '051'; + case Aruba = '533'; + case Australia = '036'; + case Austria = '040'; + case Azerbaijan = '031'; + case Bahamas = '044'; + case Bahrain = '048'; + case Bangladesh = '050'; + case Barbados = '052'; + case Belarus = '112'; + case Belgium = '056'; + case Belize = '084'; + case Benin = '204'; + case Bermuda = '060'; + case Bhutan = '064'; + case Bolivia = '068'; + case Bonaire_Sint_Eustatius_and_Saba = '535'; + case Bosnia_and_Herzegovina = '070'; + case Botswana = '072'; + case Bouvet_Island = '074'; + case Brazil = '076'; + case British_Indian_Ocean_Territory = '086'; + case Brunei_Darussalam = '096'; + case Bulgaria = '100'; + case Burkina_Faso = '854'; + case Burundi = '108'; + case Cabo_Verde = '132'; + case Cambodia = '116'; + case Cameroon = '120'; + case Canada = '124'; + case Cayman_Islands = '136'; + case Central_African_Republic = '140'; + case Chad = '148'; + case Chile = '152'; + case China = '156'; + case Christmas_Island = '162'; + case Cocos_Islands = '166'; + case Colombia = '170'; + case Comoros = '174'; + case Congo = '178'; + case Congo_Democratic_Republic = '180'; + case Cook_Islands = '184'; + case Costa_Rica = '188'; + case Cote_d_Ivoire = '384'; + case Croatia = '191'; + case Cuba = '192'; + case Curacao = '531'; + case Cyprus = '196'; + case Czechia = '203'; + case Denmark = '208'; + case Djibouti = '262'; + case Dominica = '212'; + case Dominican_Republic = '214'; + case Ecuador = '218'; + case Egypt = '818'; + case El_Salvador = '222'; + case Equatorial_Guinea = '226'; + case Eritrea = '232'; + case Estonia = '233'; + case Eswatini = '748'; + case Ethiopia = '231'; + case Falkland_Islands = '238'; + case Faroe_Islands = '234'; + case Fiji = '242'; + case Finland = '246'; + case France = '250'; + case French_Guiana = '254'; + case French_Polynesia = '258'; + case French_Southern_Territories = '260'; + case Gabon = '266'; + case Gambia = '270'; + case Georgia = '268'; + case Germany = '276'; + case Ghana = '288'; + case Gibraltar = '292'; + case Greece = '300'; + case Greenland = '304'; + case Grenada = '308'; + case Guadeloupe = '312'; + case Guam = '316'; + case Guatemala = '320'; + case Guernsey = '831'; + case Guinea = '324'; + case Guinea_Bissau = '624'; + case Guyana = '328'; + case Haiti = '332'; + case Heard_Island_and_McDonald_Islands = '334'; + case Holy_See = '336'; + case Honduras = '340'; + case Hong_Kong = '344'; + case Hungary = '348'; + case Iceland = '352'; + case India = '356'; + case Indonesia = '360'; + case Iran = '364'; + case Iraq = '368'; + case Ireland = '372'; + case Isle_of_Man = '833'; + case Israel = '376'; + case Italy = '380'; + case Jamaica = '388'; + case Japan = '392'; + case Jersey = '832'; + case Jordan = '400'; + case Kazakhstan = '398'; + case Kenya = '404'; + case Kiribati = '296'; + case Korea_Democratic_Peoples_Republic = '408'; + case Korea_Republic = '410'; + case Kuwait = '414'; + case Kyrgyzstan = '417'; + case Lao_Peoples_Democratic_Republic = '418'; + case Latvia = '428'; + case Lebanon = '422'; + case Lesotho = '426'; + case Liberia = '430'; + case Libya = '434'; + case Liechtenstein = '438'; + case Lithuania = '440'; + case Luxembourg = '442'; + case Macao = '446'; + case Madagascar = '450'; + case Malawi = '454'; + case Malaysia = '458'; + case Maldives = '462'; + case Mali = '466'; + case Malta = '470'; + case Marshall_Islands = '584'; + case Martinique = '474'; + case Mauritania = '478'; + case Mauritius = '480'; + case Mayotte = '175'; + case Mexico = '484'; + case Micronesia = '583'; + case Moldova = '498'; + case Monaco = '492'; + case Mongolia = '496'; + case Montenegro = '499'; + case Montserrat = '500'; + case Morocco = '504'; + case Mozambique = '508'; + case Myanmar = '104'; + case Namibia = '516'; + case Nauru = '520'; + case Nepal = '524'; + case Netherlands = '528'; + case New_Caledonia = '540'; + case New_Zealand = '554'; + case Nicaragua = '558'; + case Niger = '562'; + case Nigeria = '566'; + case Niue = '570'; + case Norfolk_Island = '574'; + case North_Macedonia = '807'; + case Northern_Mariana_Islands = '580'; + case Norway = '578'; + case Oman = '512'; + case Pakistan = '586'; + case Palau = '585'; + case Palestine = '275'; + case Panama = '591'; + case Papua_New_Guinea = '598'; + case Paraguay = '600'; + case Peru = '604'; + case Philippines = '608'; + case Pitcairn = '612'; + case Poland = '616'; + case Portugal = '620'; + case Puerto_Rico = '630'; + case Qatar = '634'; + case Reunion = '638'; + case Romania = '642'; + case Russian_Federation = '643'; + case Rwanda = '646'; + case Saint_Barthelemy = '652'; + case Saint_Helena_Ascension_Tristan_da_Cunha = '654'; + case Saint_Kitts_and_Nevis = '659'; + case Saint_Lucia = '662'; + case Saint_Martin_French_part = '663'; + case Saint_Pierre_and_Miquelon = '666'; + case Saint_Vincent_and_the_Grenadines = '670'; + case Samoa = '882'; + case San_Marino = '674'; + case Sao_Tome_and_Principe = '678'; + case Saudi_Arabia = '682'; + case Senegal = '686'; + case Serbia = '688'; + case Seychelles = '690'; + case Sierra_Leone = '694'; + case Singapore = '702'; + case Sint_Maarten_Dutch_part = '534'; + case Slovakia = '703'; + case Slovenia = '705'; + case Solomon_Islands = '090'; + case Somalia = '706'; + case South_Africa = '710'; + case South_Georgia_South_Sandwich_Islands = '239'; + case South_Sudan = '728'; + case Spain = '724'; + case Sri_Lanka = '144'; + case Sudan = '729'; + case Suriname = '740'; + case Svalbard_Jan_Mayen = '744'; + case Sweden = '752'; + case Switzerland = '756'; + case Syrian_Arab_Republic = '760'; + case Taiwan_Province_of_China = '158'; + case Tajikistan = '762'; + case Tanzania = '834'; + case Thailand = '764'; + case Timor_Leste = '626'; + case Togo = '768'; + case Tokelau = '772'; + case Tonga = '776'; + case Trinidad_and_Tobago = '780'; + case Tunisia = '788'; + case Turkey = '792'; + case Turkmenistan = '795'; + case Turks_and_Caicos_Islands = '796'; + case Tuvalu = '798'; + case Uganda = '800'; + case Ukraine = '804'; + case United_Arab_Emirates = '784'; + case United_Kingdom = '826'; + case United_States_Outlying_Islands = '581'; + case United_States_of_America = '840'; + case Uruguay = '858'; + case Uzbekistan = '860'; + case Vanuatu = '548'; + case Venezuela = '862'; + case Viet_Nam = '704'; + case Virgin_Islands_British = '092'; + case Virgin_Islands_U_S = '850'; + case Wallis_and_Futuna = '876'; + case Western_Sahara = '732'; + case Yemen = '887'; + case Zambia = '894'; + case Zimbabwe = '716'; public static function fromInt(int $from): self { diff --git a/tests/Unit/CountryShort/CountryAlpha2Test.php b/tests/Unit/CountryShort/CountryAlpha2Test.php new file mode 100644 index 00000000..355095c3 --- /dev/null +++ b/tests/Unit/CountryShort/CountryAlpha2Test.php @@ -0,0 +1,70 @@ +toISO3166_1_Alpha_3(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Alpha_3', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_1_Numeric + */ + public function testAllCasesCanBeConvertedToISO3166Numeric(): void + { + $cases = CountryAlpha2::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_1_Numeric(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Numeric', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_Name + */ + public function testAllCasesCanBeConvertedToISO3166Name(): void + { + $cases = CountryAlpha2::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_Name(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Name', $case->name)); + } + } + } + + /** + * @covers ::lowerCaseValue + */ + public function testLowerCaseValue(): void + { + static::assertSame('af', CountryAlpha2::Afghanistan->lowerCaseValue()); + } +} diff --git a/tests/Unit/CountryShort/CountryAlpha3Test.php b/tests/Unit/CountryShort/CountryAlpha3Test.php new file mode 100644 index 00000000..67fe1038 --- /dev/null +++ b/tests/Unit/CountryShort/CountryAlpha3Test.php @@ -0,0 +1,70 @@ +toISO3166_1_Alpha_2(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Alpha_2', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_1_Numeric + */ + public function testAllCasesCanBeConvertedToISO3166Numeric(): void + { + $cases = CountryAlpha3::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_1_Numeric(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Numeric', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_Name + */ + public function testAllCasesCanBeConvertedToISO3166Name(): void + { + $cases = CountryAlpha3::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_Name(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Name', $case->name)); + } + } + } + + /** + * @covers ::lowerCaseValue + */ + public function testLowerCaseValue(): void + { + static::assertSame('afg', CountryAlpha3::Afghanistan->lowerCaseValue()); + } +} diff --git a/tests/Unit/CountryShort/CountryNameTest.php b/tests/Unit/CountryShort/CountryNameTest.php new file mode 100644 index 00000000..503aa9d2 --- /dev/null +++ b/tests/Unit/CountryShort/CountryNameTest.php @@ -0,0 +1,62 @@ +toISO3166_1_Alpha_2(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Alpha_2', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_1_Alpha_3 + */ + public function testAllCasesCanBeConvertedToISO3166Alpha3(): void + { + $cases = CountryName::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_1_Alpha_3(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Alpha_3', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_1_Numeric + */ + public function testAllCasesCanBeConvertedToISO3166Numeric(): void + { + $cases = CountryName::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_1_Numeric(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Numeric', $case->name)); + } + } + } +} diff --git a/tests/Unit/CountryShort/CountryNumericTest.php b/tests/Unit/CountryShort/CountryNumericTest.php new file mode 100644 index 00000000..dfca5915 --- /dev/null +++ b/tests/Unit/CountryShort/CountryNumericTest.php @@ -0,0 +1,97 @@ +toISO3166_1_Alpha_2(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Alpha_2', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_1_Alpha_3 + */ + public function testAllCasesCanBeConvertedToISO3166Alpha3(): void + { + $cases = CountryNumeric::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_1_Alpha_3(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Alpha_3', $case->name)); + } + } + } + + /** + * @covers ::toISO3166_Name + */ + public function testAllCasesCanBeConvertedToISO3166Name(): void + { + $cases = CountryNumeric::cases(); + static::assertNotEmpty($cases); + foreach ($cases as $case) { + try { + $case->toISO3166_Name(); + } catch (TypeError) { + $this->fail(sprintf('Case %s could not be converted to ISO3166_1_Name', $case->name)); + } + } + } + + /** + * @covers ::fromInt + */ + public function testFromInt(): void + { + static::assertEquals(CountryNumeric::Albania, CountryNumeric::fromInt(8)); + } + + /** + * @covers ::fromInt + */ + public function testFromIntThrowsExceptionOnNonExistingValue(): void + { + $this->expectException(ValueError::class); + static::assertNull(CountryNumeric::fromInt(1)); + } + + /** + * @covers ::tryFromInt + */ + public function testTryFromInt(): void + { + static::assertEquals(CountryNumeric::Albania, CountryNumeric::tryFromInt(8)); + static::assertNull(CountryNumeric::tryFromInt(1)); + } + + /** + * @covers ::valueAsInt + */ + public function testValueAsInt(): void + { + static::assertSame(4, CountryNumeric::Afghanistan->valueAsInt()); + } +}