Spanner/src/Operation.php
public function mutation($operation, $table, $mutation)
    {
        return [
            $operation => [
                'table' => $table,
                'columns' => array_keys($mutation),
                'values' => $this->mapper->encodeValuesAsSimpleType(array_values($mutation))
            ]
        ];
    }
public function mutation($operation, $table, $mutation)
    {
        return [
            $operation => [
                'table' => $table,
                'columns' => array_keys($mutation),
                'values' => $this->mapper->encodeValuesAsSimpleType(array_values($mutation))
            ]
        ];
    }
public function mutation ( $ operation , $ table , $ mutation ) { return [ $ operation => [ 'table' => $ table , 'columns' => array_keys ( $ mutation ) , 'values' => $ this -> mapper -> encodeValuesAsSimpleType ( array_values ( $ mutation ) ) ] ] ; }
Create a formatted mutation.

@param string $operation The operation type.
@param string $table The table name.
@param array $mutation The mutation data, represented as a set of
key/value pairs.
@return array
Create a formatted mutation .