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