public function add(Integer $quantity)
    {
        $amount = new Integer($this->getAmount()->toNative() + $quantity->toNative());
        $result = new self($amount, $this->getCurrency());

        return $result;
    }
public function add(Integer $quantity)
    {
        $amount = new Integer($this->getAmount()->toNative() + $quantity->toNative());
        $result = new self($amount, $this->getCurrency());

        return $result;
    }
public function add ( Integer $ quantity ) { $ amount = new Integer ( $ this -> getAmount ( ) -> toNative ( ) + $ quantity -> toNative ( ) ) ; $ result = new self ( $ amount , $ this -> getCurrency ( ) ) ; return $ result ; }
Add an integer quantity to the amount and returns a new Money object.
Use a negative quantity for subtraction.

@param  Integer $quantity Quantity to add
@return Money
Add an integer quantity to the amount and returns a new Money object . Use a negative quantity for subtraction .