| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 21 | 3 | public function convert(string $fromCurrency, string $toCurrency, $amount) :float  | 
            |
| 22 |     { | 
            ||
| 23 | 3 | $this->fromCurrency = $fromCurrency;  | 
            |
| 24 | 3 | $this->toCurrency = $toCurrency;  | 
            |
| 25 | |||
| 26 | 3 | $rates = new Rates($this->apiCaller);  | 
            |
| 27 | |||
| 28 | 3 | $rate = $rates->getRates($fromCurrency, $toCurrency);  | 
            |
| 29 | |||
| 30 | 2 | return $this->calculateValue($rate, $amount);  | 
            |
| 31 | }  | 
            ||
| 32 | |||
| 45 |