protected function isCurrencyValid($currencyValue)
    {
        $availableCurrencies = $this->facade->getAvailableCurrencies();
        /** @var Currency $currency */
        $currencyFound = false;
        foreach ($availableCurrencies as $currency) {
            if ($currencyValue == $currency->getCode()) {
                $currencyFound = true;
            }
        }
        if (!$currencyFound) {
            throw new InvalidConditionValueException(
                \get_class(),
                'currency'
            );
        }

        return true;
    }
protected function isCurrencyValid($currencyValue)
    {
        $availableCurrencies = $this->facade->getAvailableCurrencies();
        /** @var Currency $currency */
        $currencyFound = false;
        foreach ($availableCurrencies as $currency) {
            if ($currencyValue == $currency->getCode()) {
                $currencyFound = true;
            }
        }
        if (!$currencyFound) {
            throw new InvalidConditionValueException(
                \get_class(),
                'currency'
            );
        }

        return true;
    }
protected function isCurrencyValid ( $ currencyValue ) { $ availableCurrencies = $ this -> facade -> getAvailableCurrencies ( ) ; /** @var Currency $currency */ $ currencyFound = false ; foreach ( $ availableCurrencies as $ currency ) { if ( $ currencyValue == $ currency -> getCode ( ) ) { $ currencyFound = true ; } } if ( ! $ currencyFound ) { throw new InvalidConditionValueException ( \ get_class ( ) , 'currency' ) ; } return true ; }
Check if currency if valid or not

@param string $currencyValue Currency EUR|USD|..

@return bool
@throws \Thelia\Exception\InvalidConditionValueException
Check if currency if valid or not