lists = $lists; } /** * Validate currency code * * @param string $currencyCode * @return bool * @api */ public function isValid($currencyCode) { $isValid = true; $allowedCurrencyCodes = array_keys($this->lists->getCurrencyList()); if (!$currencyCode || !in_array($currencyCode, $allowedCurrencyCodes)) { $isValid = false; } return $isValid; } }