/** * Checks whether the value represented by this object equals to the other * * @param Money $money * @return bool */ public function equals(Money $money) { return $this->isSameCurrency($money) && $this->amount->equals($money->amount, $this->getInnerPrecision()); }