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
Exchange.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Money; |
| 4 | |
| 5 | use Money\Exception\UnresolvableCurrencyPairException; |
| 6 | |
| 7 | /** |
| 8 | * Provides a way to get exchange rate from a third-party source and return a currency pair. |
| 9 | * |
| 10 | * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> |
| 11 | */ |
| 12 | interface Exchange |
| 13 | { |
| 14 | /** |
| 15 | * Returns a currency pair for the passed currencies with the rate coming from a third-party source. |
| 16 | * |
| 17 | * @return CurrencyPair |
| 18 | * |
| 19 | * @throws UnresolvableCurrencyPairException When there is no currency pair (rate) available for the given currencies |
| 20 | */ |
| 21 | public function quote(Currency $baseCurrency, Currency $counterCurrency); |
| 22 | } |
| 23 |