Total Complexity | 8 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
4 | class Currency |
||
5 | { |
||
6 | public $source; |
||
7 | |||
8 | public function __construct($source) |
||
9 | { |
||
10 | $this->source = $source; |
||
11 | } |
||
12 | |||
13 | public function convertAmount($amount, $from_currency, $to_currency) |
||
14 | { |
||
15 | return $this->getConvRate($from_currency, $to_currency) * $amount; |
||
16 | } |
||
17 | |||
18 | public function getConvRate($from_currency, $to_currency) |
||
44 | } |
||
45 | } |
||
46 |