public function convertFixedRate(array $fixedExchange, int $amount, string $swift_code): MoneyPHP
    {
        return (new Converter(
            new ISOCurrencies(),
            (new ReversedCurrenciesExchange(new FixedExchange($fixedExchange)))
        ))->convert($this->castMoney($amount), new Currency($swift_code));
    }
public function convertFixedRate(array $fixedExchange, int $amount, string $swift_code): MoneyPHP
    {
        return (new Converter(
            new ISOCurrencies(),
            (new ReversedCurrenciesExchange(new FixedExchange($fixedExchange)))
        ))->convert($this->castMoney($amount), new Currency($swift_code));
    }
public function convertFixedRate ( array $ fixedExchange , int $ amount , string $ swift_code ) : MoneyPHP { return ( new Converter ( new ISOCurrencies ( ) , ( new ReversedCurrenciesExchange ( new FixedExchange ( $ fixedExchange ) ) ) ) ) -> convert ( $ this -> castMoney ( $ amount ) , new Currency ( $ swift_code ) ) ; }
Convert Money with given fixed rate.

@see http://moneyphp.org/en/latest/features/currency-conversion.html#fixed-exchange

@param array  $fixedExchange ['EUR' => ['USD' => 1.25]]
@param int    $amount
@param string $swift_code

@return \Money\Money
Convert Money with given fixed rate .