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