Skip to content

Commit

Permalink
Automatic Currency spec update from upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank authored Jan 1, 2023
1 parent ceb683b commit 570bed6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Currency/ISO4217_Alpha_3.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ enum ISO4217_Alpha_3: string
case Jordanian_Dinar = 'JOD';
case Kenyan_Shilling = 'KES';
case Kina = 'PGK';
case Kuna = 'HRK';
case Kuwaiti_Dinar = 'KWD';
case Kwanza = 'AOA';
case Kyat = 'MMK';
Expand Down Expand Up @@ -192,6 +191,9 @@ enum ISO4217_Alpha_3: string
case Zimbabwe_Dollar = 'ZWL';
case Zloty = 'PLN';

/** @deprecated Has been removed from the specification but is maintained here for Backwards Compatibility reasons */
case Kuna = 'HRK';

public function toISO4217_Numeric(): ISO4217_Numeric
{
return BackedEnum::fromKey(ISO4217_Numeric::class, $this->name);
Expand Down
4 changes: 3 additions & 1 deletion src/Currency/ISO4217_Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ enum ISO4217_Name: string
case Jordanian_Dinar = 'Jordanian Dinar';
case Kenyan_Shilling = 'Kenyan Shilling';
case Kina = 'Kina';
case Kuna = 'Kuna';
case Kuwaiti_Dinar = 'Kuwaiti Dinar';
case Kwanza = 'Kwanza';
case Kyat = 'Kyat';
Expand Down Expand Up @@ -192,6 +191,9 @@ enum ISO4217_Name: string
case Zimbabwe_Dollar = 'Zimbabwe Dollar';
case Zloty = 'Zloty';

/** @deprecated Has been removed from the specification but is maintained here for Backwards Compatibility reasons */
case Kuna = 'Kuna';

public function toISO4217_Alpha_3(): ISO4217_Alpha_3
{
return BackedEnum::fromKey(ISO4217_Alpha_3::class, $this->name);
Expand Down
4 changes: 3 additions & 1 deletion src/Currency/ISO4217_Numeric.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ enum ISO4217_Numeric: string
case Jordanian_Dinar = '400';
case Kenyan_Shilling = '404';
case Kina = '598';
case Kuna = '191';
case Kuwaiti_Dinar = '414';
case Kwanza = '973';
case Kyat = '104';
Expand Down Expand Up @@ -192,6 +191,9 @@ enum ISO4217_Numeric: string
case Zimbabwe_Dollar = '932';
case Zloty = '985';

/** @deprecated Has been removed from the specification but is maintained here for Backwards Compatibility reasons */
case Kuna = '191';

public static function fromInt(int $from): self
{
return self::from(str_pad((string) $from, 3, '0', STR_PAD_LEFT));
Expand Down

0 comments on commit 570bed6

Please sign in to comment.