Spanner/src/Transaction.php
private function enqueue($op, $table, array $dataSet)
    {
        foreach ($dataSet as $data) {
            if ($op === Operation::OP_DELETE) {
                $this->mutations[] = $this->operation->deleteMutation($table, $data);
            } else {
                $this->mutations[] = $this->operation->mutation($op, $table, $data);
            }
        }
    }
private function enqueue($op, $table, array $dataSet)
    {
        foreach ($dataSet as $data) {
            if ($op === Operation::OP_DELETE) {
                $this->mutations[] = $this->operation->deleteMutation($table, $data);
            } else {
                $this->mutations[] = $this->operation->mutation($op, $table, $data);
            }
        }
    }
private function enqueue ( $ op , $ table , array $ dataSet ) { foreach ( $ dataSet as $ data ) { if ( $ op === Operation :: OP_DELETE ) { $ this -> mutations [ ] = $ this -> operation -> deleteMutation ( $ table , $ data ) ; } else { $ this -> mutations [ ] = $ this -> operation -> mutation ( $ op , $ table , $ data ) ; } } }
Format, validate and enqueue mutations in the transaction.

@param string $op The operation type.
@param string $table The table name
@param array $dataSet the mutations to enqueue
@return void
Format validate and enqueue mutations in the transaction .