Bitpay\Payout::updateInstruction PHP Method

updateInstruction() public method

Update Instruction - Supply an index of the instruction to update, plus the function and single argument, to do something to an instruction.
public updateInstruction ( $index, $function, $argument )
$index
$function
$argument
    public function updateInstruction($index, $function, $argument)
    {
        if (!empty($argument) && ctype_print($argument)) {
            $this->instructions[$index]->{$function}($argument);
        }
        return $this;
    }