Аргумент | Возможный тип | Описание |
$currency = '' | — | — |
if (!$currency) { return $this->currencies[$this->code]['value']; } elseif ($currency && isset($this->currencies[$currency])) { return $this->currencies[$currency]['value']; } else { return 0; }