Пример #1
0
 /**
  * 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));
 }