| @@ -16,6 +16,7 @@ | ||
| 16 | 16 | /** | 
| 17 | 17 | * CurrencyConverter constructor. | 
| 18 | 18 | * @param ExchangeRateInterface[] ...$exchangeRates | 
| 19 | + * @param \BenTools\Currency\Model\ExchangeRate $exchangeRates | |
| 19 | 20 | */ | 
| 20 | 21 | public function __construct(ExchangeRateInterface ...$exchangeRates) | 
| 21 | 22 |      { | 
| @@ -48,8 +48,8 @@ discard block | ||
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | 50 | /** | 
| 51 | - * @param null $sourceCurrencyCode | |
| 52 | - * @param null $targetCurrencyCode | |
| 51 | + * @param string $sourceCurrencyCode | |
| 52 | + * @param string $targetCurrencyCode | |
| 53 | 53 | * @param float|null $ratio | 
| 54 | 54 | * @param \DateTimeInterface|null $day | 
| 55 | 55 | * @return ExchangeRateInterface | 
| @@ -64,8 +64,8 @@ discard block | ||
| 64 | 64 | |
| 65 | 65 | /** | 
| 66 | 66 | * constructor. | 
| 67 | - * @param CurrencyInterface $sourceCurrency | |
| 68 | - * @param CurrencyInterface $targetCurrency | |
| 67 | + * @param CurrencyInterface $sourceCurrencyCode | |
| 68 | + * @param CurrencyInterface $targetCurrencyCode | |
| 69 | 69 | * @param float $ratio | 
| 70 | 70 | * @param \DateTimeInterface|null $day | 
| 71 | 71 | */ | 
| @@ -95,6 +95,7 @@ | ||
| 95 | 95 | |
| 96 | 96 | /** | 
| 97 | 97 | * @param ExchangeRateInterface ...$exchangeRates | 
| 98 | + * @param ExchangeRateInterface[] $exchangeRates | |
| 98 | 99 | * @return float | 
| 99 | 100 | */ | 
| 100 | 101 | private static function getAverageRatio(ExchangeRateInterface ...$exchangeRates): float | 
| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | use Http\Discovery\HttpClientDiscovery; | 
| 16 | 16 | use Http\Discovery\MessageFactoryDiscovery; | 
| 17 | 17 | use Http\Message\RequestFactory; | 
| 18 | -use Psr\SimpleCache\CacheInterface; | |
| 19 | 18 | use SimpleXMLElement; | 
| 20 | 19 | |
| 21 | 20 | final class EuropeanCentralBankProvider implements ExchangeRateProviderInterface | 
| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | use Http\Discovery\HttpClientDiscovery; | 
| 16 | 16 | use Http\Discovery\MessageFactoryDiscovery; | 
| 17 | 17 | use Http\Message\RequestFactory; | 
| 18 | -use Psr\SimpleCache\CacheInterface; | |
| 19 | 18 | |
| 20 | 19 | final class FixerIOProvider implements ExchangeRateProviderInterface | 
| 21 | 20 |  { | 
| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | use Http\Discovery\HttpClientDiscovery; | 
| 16 | 16 | use Http\Discovery\MessageFactoryDiscovery; | 
| 17 | 17 | use Http\Message\RequestFactory; | 
| 18 | -use Psr\SimpleCache\CacheInterface; | |
| 19 | 18 | |
| 20 | 19 | final class OpenExchangeRatesProvider implements ExchangeRateProviderInterface | 
| 21 | 20 |  { |