public function equals(Money $money)
    {
        if (!$this->currency->equals($money->getCurrency())) {
            return false;
        }

        return (0 == $this->compare($money));
    }
public function equals(Money $money)
    {
        if (!$this->currency->equals($money->getCurrency())) {
            return false;
        }

        return (0 == $this->compare($money));
    }
public function equals ( Money $ money ) { if ( ! $ this -> currency -> equals ( $ money -> getCurrency ( ) ) ) { return false ; } return ( 0 == $ this -> compare ( $ money ) ) ; }
Are these to money equal?

@param Money $money the money to camplare with

@return boolean true if both amounts and currency are equal, false otherwise
Are these to money equal?