Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ExchangeRateUpdater |
||
12 | { |
||
13 | private $base_currency; |
||
14 | private $swap; |
||
15 | |||
16 | public function __construct(string $base_currency, Swap $swap) |
||
17 | { |
||
18 | $this->base_currency = $base_currency; |
||
19 | $this->swap = $swap; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Updates the exchange rate of the given currency using the globally configured providers. |
||
24 | * @param Currency $currency |
||
25 | * @return Currency |
||
26 | */ |
||
27 | public function update(Currency $currency): Currency |
||
32 | } |
||
33 | |||
34 | } |