new appraoch

This commit is contained in:
Tim Bendt
2025-11-26 13:22:58 -05:00
parent de3d100844
commit c520b7df89
6760 changed files with 1009780 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Money;
use Money\Exception\UnknownCurrencyException;
/**
* Implement this to provide a list of currencies.
*
* @author Mathias Verraes
*/
interface Currencies extends \IteratorAggregate
{
/**
* Checks whether a currency is available in the current context.
*
* @return bool
*/
public function contains(Currency $currency);
/**
* Returns the subunit for a currency.
*
* @return int
*
* @throws UnknownCurrencyException If currency is not available in the current context
*/
public function subunitFor(Currency $currency);
}