src/RationalMoney.php
public function plus($that) : RationalMoney
    {
        $that = $this->getAmountOf($that);
        $amount = $this->amount->plus($that);

        return new self($amount, $this->currency);
    }
public function plus($that) : RationalMoney
    {
        $that = $this->getAmountOf($that);
        $amount = $this->amount->plus($that);

        return new self($amount, $this->currency);
    }
public function plus ( $ that ) : RationalMoney { $ that = $ this -> getAmountOf ( $ that ) ; $ amount = $ this -> amount -> plus ( $ that ) ; return new self ( $ amount , $ this -> currency ) ; }
Returns the sum of this RationalMoney and the given amount.

@param AbstractMoney|BigNumber|number|string $that The money or amount to add.

@return RationalMoney

@throws MathException          If the argument is not a valid number.
@throws MoneyMismatchException If the argument is a money in another currency.
Returns the sum of this RationalMoney and the given amount .