/** * Returns whether this Money is equal to the given Money. * * @param Money $that * * @return bool * * @throws CurrencyMismatchException If the given Money is in a different currency. */ public function isEqualTo(Money $that) { $this->checkMoney($that); return $this->amount->isEqualTo($that->amount); }