BulkCommand.php
public function addAction($line1, $line2 = null)
    {
        if (!is_array($this->actions)) {
            $this->actions = [];
        }

        $this->actions[] = $line1;

        if ($line2 !== null) {
            $this->actions[] = $line2;
        }
    }
public function addAction($line1, $line2 = null)
    {
        if (!is_array($this->actions)) {
            $this->actions = [];
        }

        $this->actions[] = $line1;

        if ($line2 !== null) {
            $this->actions[] = $line2;
        }
    }
public function addAction ( $ line1 , $ line2 = null ) { if ( ! is_array ( $ this -> actions ) ) { $ this -> actions = [ ] ; } $ this -> actions [ ] = $ line1 ; if ( $ line2 !== null ) { $ this -> actions [ ] = $ line2 ; } }
Adds an action to the command. Will overwrite existing actions if they are specified as a string.
@param array $action Action expressed as an array (will be encoded to JSON automatically).
Adds an action to the command . Will overwrite existing actions if they are specified as a string .