Calculator
1 year ago
Currencies
1 year ago
Exception
1 year ago
Exchange
1 year ago
Formatter
1 year ago
PHPUnit
1 year ago
Parser
1 year ago
Calculator.php
4 years ago
Converter.php
1 year ago
Currencies.php
1 year ago
Currency.php
1 year ago
CurrencyPair.php
1 year ago
Exception.php
4 years ago
Exchange.php
1 year ago
Money.php
1 year ago
MoneyFactory.php
4 years ago
MoneyFormatter.php
1 year ago
MoneyParser.php
4 years ago
Number.php
1 year ago
Currencies.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Money; |
| 4 | |
| 5 | use Money\Exception\UnknownCurrencyException; |
| 6 | |
| 7 | /** |
| 8 | * Implement this to provide a list of currencies. |
| 9 | * |
| 10 | * @author Mathias Verraes |
| 11 | */ |
| 12 | interface Currencies extends \IteratorAggregate |
| 13 | { |
| 14 | /** |
| 15 | * Checks whether a currency is available in the current context. |
| 16 | * |
| 17 | * @return bool |
| 18 | */ |
| 19 | public function contains(Currency $currency); |
| 20 | |
| 21 | /** |
| 22 | * Returns the subunit for a currency. |
| 23 | * |
| 24 | * @return int |
| 25 | * |
| 26 | * @throws UnknownCurrencyException If currency is not available in the current context |
| 27 | */ |
| 28 | public function subunitFor(Currency $currency); |
| 29 | } |
| 30 |