public function getAmount(MoneyInterface $money = null, $currency = null)
    {
        if (null === $money) {
            return 0.0;
        }

        $reduced = $this->bank->reduce($money, $currency);

        return $reduced->getAmount();
    }
public function getAmount(MoneyInterface $money = null, $currency = null)
    {
        if (null === $money) {
            return 0.0;
        }

        $reduced = $this->bank->reduce($money, $currency);

        return $reduced->getAmount();
    }
public function getAmount ( MoneyInterface $ money = null , $ currency = null ) { if ( null === $ money ) { return 0.0 ; } $ reduced = $ this -> bank -> reduce ( $ money , $ currency ) ; return $ reduced -> getAmount ( ) ; }
Gets the amount.

@param MoneyInterface $money    A MoneyInterface instance
@param string         $currency The currency code
Gets the amount .