Skip to content

0.4.4

Compare
Choose a tag to compare
@BenMorel BenMorel released this 23 Jan 18:16
· 139 commits to master since this release

New method

AbstractMoney::isAmountAndCurrencyEqualTo() compares a money to another. (#17)

This method is different from isEqualTo() in 2 aspects:

  • it only accepts another money, not a raw number;
  • it returns false if the money is in another currency, instead of throwing an exception.