16
16
* @psalm-type CurrencyAlpha2Code=string
17
17
* @psalm-type CurrencyMetadata=array{display_name: string, numeric_code: int, default_fraction_digits: int, sub_unit: int, sign: string, deprecated: boolean}
18
18
* @psalm-type CurrencyRegistry=array<CurrencyAlpha2Code, CurrencyMetadata>
19
+ *
20
+ * @psalm-immutable
19
21
*/
20
22
final class Currency implements JsonSerializable
21
23
{
@@ -1647,8 +1649,6 @@ public static function getCurrenciesIncludingDeprecated(): array
1647
1649
1648
1650
/**
1649
1651
* Returns the ISO 4217 currency code of this currency.
1650
- *
1651
- * @psalm-mutation-free
1652
1652
*/
1653
1653
public function getCurrencyCode (): string
1654
1654
{
@@ -1658,8 +1658,6 @@ public function getCurrencyCode(): string
1658
1658
/**
1659
1659
* Returns the default number of fraction digits used with this
1660
1660
* currency.
1661
- *
1662
- * @psalm-mutation-free
1663
1661
*/
1664
1662
public function getDefaultFractionDigits (): int
1665
1663
{
@@ -1668,8 +1666,6 @@ public function getDefaultFractionDigits(): int
1668
1666
1669
1667
/**
1670
1668
* Returns the name that is suitable for displaying this currency.
1671
- *
1672
- * @psalm-mutation-free
1673
1669
*/
1674
1670
public function getDisplayName (): string
1675
1671
{
@@ -1678,8 +1674,6 @@ public function getDisplayName(): string
1678
1674
1679
1675
/**
1680
1676
* Returns the ISO 4217 numeric code of this currency.
1681
- *
1682
- * @psalm-mutation-free
1683
1677
*/
1684
1678
public function getNumericCode (): int
1685
1679
{
@@ -1688,8 +1682,6 @@ public function getNumericCode(): int
1688
1682
1689
1683
/**
1690
1684
* Returns the minor currency sub units.
1691
- *
1692
- * @psalm-mutation-free
1693
1685
*/
1694
1686
public function getSubUnit (): int
1695
1687
{
@@ -1698,8 +1690,6 @@ public function getSubUnit(): int
1698
1690
1699
1691
/**
1700
1692
* Returns the currency sign.
1701
- *
1702
- * @psalm-mutation-free
1703
1693
*/
1704
1694
public function getSign (): string
1705
1695
{
@@ -1708,8 +1698,6 @@ public function getSign(): string
1708
1698
1709
1699
/**
1710
1700
* Returns the deprecation status.
1711
- *
1712
- * @psalm-mutation-free
1713
1701
*/
1714
1702
public function isDeprecated (): bool
1715
1703
{
@@ -1718,17 +1706,12 @@ public function isDeprecated(): bool
1718
1706
1719
1707
/**
1720
1708
* {@inheritdoc}
1721
- *
1722
- * @psalm-mutation-free
1723
1709
*/
1724
1710
public function jsonSerialize (): string
1725
1711
{
1726
1712
return $ this ->getCurrencyCode ();
1727
1713
}
1728
1714
1729
- /**
1730
- * @psalm-mutation-free
1731
- */
1732
1715
public function equals (self $ currency ): bool
1733
1716
{
1734
1717
return $ this ->getCurrencyCode () === $ currency ->getCurrencyCode ();
0 commit comments