File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727- ** Support for historical currencies** in ` Money::of() ` , ` Currency::of() ` , etc. (#104 by @survik1 )
2828- New enum: ` CurrencyType `
29- - New method: ` Currency::getCurrencyType() ` returns the type of the currency
30- - New method: ` Currency::ofNumericCode() ` returns a currency by its numeric ISO 4217 code
31- - New method: ` ISOCurrencyProvider::getCurrencyByNumericCode() ` returns a currency by its numeric code
32- - New method: ` ISOCurrencyProvider::getHistoricalCurrenciesForCountry() ` returns historical currencies for a country
33- - New method: ` MoneyBag::getMoney() ` returns the contained amount in a given currency (replaces ` getAmount() ` )
34- - New method: ` MoneyBag::getMonies() ` returns the contained monies (replaces ` getAmounts() ` )
29+ - New methods:
30+ - ` Currency::getCurrencyType() ` returns the type of the currency
31+ - ` Currency::ofNumericCode() ` returns a currency by its numeric ISO 4217 code
32+ - ` ISOCurrencyProvider::getCurrencyByNumericCode() ` returns a currency by its numeric code
33+ - ` ISOCurrencyProvider::getHistoricalCurrenciesForCountry() ` returns historical currencies for a country
34+ - ` MoneyBag::getMoney() ` returns the contained amount in a given currency (replaces ` getAmount() ` )
35+ - ` MoneyBag::getMonies() ` returns the contained monies (replaces ` getAmounts() ` )
3536- New interface: ` Monetary ` (replaces ` MoneyContainer ` )
3637
3738👌 ** Improvements**
@@ -290,7 +291,7 @@ New method: `CustomContext::getScale()`
290291
291292Backports from 0.2.x:
292293
293- - New method: ` CustomContext::getScale() `
294+ - ` CustomContext::getScale() `
294295- ` Money::formatTo() ` now always respects the scale of the Money
295296- Bug fix: ` Money::allocate() ` incorrectly allocated negative monies
296297
You can’t perform that action at this time.
0 commit comments