@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | * @return boolean - true if fetched new exchange rates, false otherwise |
48 | 48 | */ |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $dateCur |
|
52 | + */ |
|
50 | 53 | public function fetchCurrencyRates($dateCur, $cron = false) |
51 | 54 | { |
52 | 55 | if (!\App\RequestUtil::isNetConnection()) { |
@@ -123,6 +126,9 @@ discard block |
||
123 | 126 | * @param <Float> $exchange - exchange rate |
124 | 127 | */ |
125 | 128 | |
129 | + /** |
|
130 | + * @param string|false $id |
|
131 | + */ |
|
126 | 132 | public function updateCurrencyRate($id, $exchange) |
127 | 133 | { |
128 | 134 | \App\Db::getInstance()->createCommand() |
@@ -172,6 +178,9 @@ discard block |
||
172 | 178 | * @return <Array> - array containing currency rates |
173 | 179 | */ |
174 | 180 | |
181 | + /** |
|
182 | + * @param string $dateCur |
|
183 | + */ |
|
175 | 184 | public function getRatesHistory($bankId, $dateCur, \App\Request $request) |
176 | 185 | { |
177 | 186 | $query = (new App\Db\Query())->select(['exchange', 'currency_name', 'currency_code', 'currency_symbol', 'fetch_date', 'exchange_date']) |
@@ -366,6 +375,9 @@ discard block |
||
366 | 375 | * @return boolean - true on success or false |
367 | 376 | */ |
368 | 377 | |
378 | + /** |
|
379 | + * @param integer $bankId |
|
380 | + */ |
|
369 | 381 | public function setActiveBankById($bankId) |
370 | 382 | { |
371 | 383 | $db = \App\Db::getInstance(); |