src/Money/Money.php
public function subtract(Money $money)
    {
        $diff = new Money($this->getAmount() - $money->getAmount());
        $this->setWhole($diff->getAmount());
        $this->setFraction($diff->getAmount());
        return $this;
    }
public function subtract(Money $money)
    {
        $diff = new Money($this->getAmount() - $money->getAmount());
        $this->setWhole($diff->getAmount());
        $this->setFraction($diff->getAmount());
        return $this;
    }
public function subtract ( Money $ money ) { $ diff = new Money ( $ this -> getAmount ( ) - $ money -> getAmount ( ) ) ; $ this -> setWhole ( $ diff -> getAmount ( ) ) ; $ this -> setFraction ( $ diff -> getAmount ( ) ) ; return $ this ; }
Subtracts the given money from this money

@param Money $money
@return Money
Subtracts the given money from this money