Exemplo n.º 1
0
 /**
  * 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);
 }