src/Money.php
public function equals(Money $other)
    {
        return $this->isSameCurrency($other) && $this->amount === $other->amount;
    }
public function equals(Money $other)
    {
        return $this->isSameCurrency($other) && $this->amount === $other->amount;
    }
public function equals ( Money $ other ) { return $ this -> isSameCurrency ( $ other ) && $ this -> amount === $ other -> amount ; }
Checks whether the value represented by this object equals to the other.

@param Money $other

@return bool
Checks whether the value represented by this object equals to the other .