@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | throw new ConfigurationException(sprintf('Source "%s" does not provide currency code "%s" for rate type "%s".', $this->getName(), $currencyCode, $rateType)); |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $rateType |
|
79 | + */ |
|
77 | 80 | protected function validateRateType($rateType) |
78 | 81 | { |
79 | 82 | $knownTypes = array( |
@@ -91,6 +94,10 @@ discard block |
||
91 | 94 | return $this; |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param string $currencyCode |
|
99 | + * @param string $rateType |
|
100 | + */ |
|
94 | 101 | protected function validateCurrencyCode($currencyCode, $rateType) |
95 | 102 | { |
96 | 103 | $supports = array( |
@@ -112,6 +119,7 @@ discard block |
||
112 | 119 | |
113 | 120 | /** |
114 | 121 | * @param \DateTime $date |
122 | + * @param string $rateType |
|
115 | 123 | * @return RateInterface[] |
116 | 124 | * @throws SourceNotAvailableException |
117 | 125 | */ |
@@ -137,6 +145,9 @@ discard block |
||
137 | 145 | } |
138 | 146 | } |
139 | 147 | |
148 | + /** |
|
149 | + * @param string $xml |
|
150 | + */ |
|
140 | 151 | protected function parseXml($xml, $rateType) |
141 | 152 | { |
142 | 153 | $rates = array(); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use GuzzleHttp\Client as GuzzleClient; |
6 | 6 | use GuzzleHttp\Cookie\CookieJar; |
7 | 7 | use Psr\Log\LoggerAwareTrait; |
8 | -use Psr\Log\LoggerInterface; |
|
9 | 8 | use RunOpenCode\ExchangeRate\Contract\RateInterface; |
10 | 9 | use RunOpenCode\ExchangeRate\Contract\SourceInterface; |
11 | 10 | use RunOpenCode\ExchangeRate\Exception\ConfigurationException; |