moneyphp / money

PHP implementation of Fowler's Money pattern.
http://moneyphp.org
MIT License
4.6k stars 440 forks source link

Method to return the currency name #674

Closed simonbowen closed 2 years ago

simonbowen commented 2 years ago

Can a method be added to return the currency name

$currency->getName();

Is there a reason this doesn't exist? If not I'll open a PR.

frederikbosch commented 2 years ago

Yes, the value object Currency is not a repository for currency information. You can interact with the included currency array yourself if needed.