Context
1 year ago
Exception
1 year ago
ExchangeRateProvider
1 year ago
AbstractMoney.php
1 year ago
Context.php
1 year ago
Currency.php
1 year ago
CurrencyConverter.php
1 year ago
ExchangeRateProvider.php
1 year ago
ISOCurrencyProvider.php
1 year ago
Money.php
1 year ago
MoneyBag.php
1 year ago
MoneyComparator.php
1 year ago
MoneyContainer.php
1 year ago
RationalMoney.php
1 year ago
MoneyContainer.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Brick\Money; |
| 6 | |
| 7 | use Brick\Math\BigNumber; |
| 8 | |
| 9 | /** |
| 10 | * Common interface for Money, RationalMoney and MoneyBag. |
| 11 | */ |
| 12 | interface MoneyContainer |
| 13 | { |
| 14 | /** |
| 15 | * Returns the amounts contained in this money container, indexed by currency code. |
| 16 | * |
| 17 | * @psalm-return array<string, BigNumber> |
| 18 | * |
| 19 | * @return BigNumber[] |
| 20 | */ |
| 21 | public function getAmounts() : array; |
| 22 | } |
| 23 |