| 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 |
|