Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Exchange |
||
8 | { |
||
9 | /** |
||
10 | * @var Fixer |
||
11 | */ |
||
12 | private $fixer; |
||
13 | |||
14 | /** |
||
15 | * Exchange constructor. |
||
16 | * @param Fixer $fixer |
||
17 | */ |
||
18 | public function __construct(Fixer $fixer) |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param $amount |
||
25 | * @param $from |
||
26 | * @param $to |
||
27 | * @param null $rate |
||
|
|||
28 | * @return int |
||
29 | * @throws NotFoundException |
||
30 | */ |
||
31 | public function rate($amount, $from, $to, $rate = null) |
||
40 |