src/CurrencyExchangeRate/CurrencyExchangeRate.php
protected function setExchangeRate(float $exchangeRate): void
    {
        if ( ! is_float($exchangeRate)) {
            throw new \InvalidArgumentException(sprintf('ExchangeRate has to be a float. %s given.', gettype($exchangeRate)));
        }

        $this->exchangeRate = $exchangeRate;
    }
protected function setExchangeRate(float $exchangeRate): void
    {
        if ( ! is_float($exchangeRate)) {
            throw new \InvalidArgumentException(sprintf('ExchangeRate has to be a float. %s given.', gettype($exchangeRate)));
        }

        $this->exchangeRate = $exchangeRate;
    }
protected function setExchangeRate ( float $ exchangeRate ) : void { if ( ! is_float ( $ exchangeRate ) ) { throw new \ InvalidArgumentException ( sprintf ( 'ExchangeRate has to be a float. %s given.' , gettype ( $ exchangeRate ) ) ) ; } $ this -> exchangeRate = $ exchangeRate ; }
Set the conversion rate of the currency.

@param float $exchangeRate
Set the conversion rate of the currency .