public function sameValueAs(ValueObjectInterface $money)
    {
        if (false === Util::classEquals($this, $money)) {
            return false;
        }

        return $this->getAmount()->sameValueAs($money->getAmount()) && $this->getCurrency()->sameValueAs($money->getCurrency());
    }
public function sameValueAs(ValueObjectInterface $money)
    {
        if (false === Util::classEquals($this, $money)) {
            return false;
        }

        return $this->getAmount()->sameValueAs($money->getAmount()) && $this->getCurrency()->sameValueAs($money->getCurrency());
    }
public function sameValueAs ( ValueObjectInterface $ money ) { if ( false === Util :: classEquals ( $ this , $ money ) ) { return false ; } return $ this -> getAmount ( ) -> sameValueAs ( $ money -> getAmount ( ) ) && $ this -> getCurrency ( ) -> sameValueAs ( $ money -> getCurrency ( ) ) ; }
Tells whether two Currency are equal by comparing their amount and currency

@param  ValueObjectInterface $money
@return bool
Tells whether two Currency are equal by comparing their amount and currency