Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class RbcRateBuilder |
||
17 | { |
||
18 | /** |
||
19 | * Returns an instance of Movavi\Entity\Rate, |
||
20 | * by string in json-format from cash.rbc.ru |
||
21 | * |
||
22 | * @param string $currencyFrom |
||
23 | * @param string $currencyTo |
||
24 | * @param \DateTime $date |
||
25 | * @param string $jsonString |
||
26 | * |
||
27 | * @return Rate |
||
28 | * |
||
29 | * @throws NoneRateException |
||
30 | */ |
||
31 | public function fromJson(string $currencyFrom, string $currencyTo, \DateTime $date, string $jsonString): Rate |
||
42 |