src/Transactions/Builder/MultiPayment.php
public function add(string $recipientId, int $amount): self
    {
        $this->transaction->asset['payments'][] = compact('recipientId', 'amount');

        return $this;
    }
public function add(string $recipientId, int $amount): self
    {
        $this->transaction->asset['payments'][] = compact('recipientId', 'amount');

        return $this;
    }
public function add ( string $ recipientId , int $ amount ) : self { $ this -> transaction -> asset [ 'payments' ] [ ] = compact ( 'recipientId' , 'amount' ) ; return $ this ; }
Add a new payment to the collection.

@param string $recipientId
@param int    $amount

@return \ArkEcosystem\Crypto\Transactions\Builder\MultiPayment
Add a new payment to the collection .