| @@ 237-244 (lines=8) @@ | ||
| 234 | * @param string $sourceName |
|
| 235 | * @return string |
|
| 236 | */ |
|
| 237 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
| 238 | { |
|
| 239 | return str_replace( |
|
| 240 | array('%currency_code%', '%date%', '%rate_type%', '%source_name%'), |
|
| 241 | array($currencyCode, $date->format('Y-m-d'), $rateType, $sourceName), |
|
| 242 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
| 243 | ); |
|
| 244 | } |
|
| 245 | ||
| 246 | /** |
|
| 247 | * Initializes file storage. |
|
| @@ 321-328 (lines=8) @@ | ||
| 318 | * @param string $sourceName |
|
| 319 | * @return string |
|
| 320 | */ |
|
| 321 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
| 322 | { |
|
| 323 | return str_replace( |
|
| 324 | array('%currency_code%', '%date%', '%rate_type%', '%source_name%'), |
|
| 325 | array($currencyCode, $date->format('Y-m-d'), $rateType, $sourceName), |
|
| 326 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
| 327 | ); |
|
| 328 | } |
|
| 329 | ||
| 330 | /** |
|
| 331 | * Initialize table schema where rates would be stored. |
|