• File: Currencies.php
  • Full Path: /var/www/crm_set/application/vendor/moneyphp/money/src/Currencies.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 613 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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);
}