示例#1
0
文件: BaseMoney.php 项目: merk/dough
 /**
  * Subtracts the subtrahend from the money object.
  *
  * The subtrahend should be passed in as a positive value.
  *
  * @param MoneyInterface $subtrahend
  * @return Sum
  */
 public function subtract(MoneyInterface $subtrahend)
 {
     return $this->plus($subtrahend->times(-1));
 }