public function equals(Money $money)
  {
    return $this->isSameCurrency($money) && $this->cents == $money->cents;
  }
public function equals(Money $money)
  {
    return $this->isSameCurrency($money) && $this->cents == $money->cents;
  }
public function equals ( Money $ money ) { return $ this -> isSameCurrency ( $ money ) && $ this -> cents == $ money -> cents ; }
Check the equality of two Money objects.
First check the currency and then check the value.

@param PhilipBrown\Money\Money
@return bool
Check the equality of two Money objects . First check the currency and then check the value .