| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class Rates |
||
| 6 | { |
||
| 7 | const ENDPOINT = 'rate'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var Client |
||
| 11 | */ |
||
| 12 | private $client; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Rates constructor. |
||
| 16 | * @param Client $client |
||
| 17 | */ |
||
| 18 | public function __construct(Client $client) |
||
| 19 | { |
||
| 20 | $this->client = $client; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @see https://revolutdev.github.io/business-api/#get-exchange-rates |
||
| 25 | * |
||
| 26 | * @return mixed |
||
| 27 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 28 | */ |
||
| 29 | public function get(string $from, string $to, float $amount) |
||
| 33 | } |
||
| 34 | } |
||
| 35 |