Datastore/src/Transaction.php
public function commit(array $options = [])
    {
        $options['transaction'] = $this->transactionId;

        return $this->operation->commit($this->mutations, $options);
    }
public function commit(array $options = [])
    {
        $options['transaction'] = $this->transactionId;

        return $this->operation->commit($this->mutations, $options);
    }
public function commit ( array $ options = [ ] ) { $ options [ 'transaction' ] = $ this -> transactionId ; return $ this -> operation -> commit ( $ this -> mutations , $ options ) ; }
Commit all mutations.

Calling this method will end the operation (and close the transaction,
if one is specified).

Example:
```
$transaction->commit();
```

@see https://cloud.google.com/datastore/docs/reference/rest/v1/projects/commit Commit API documentation

@param array $options [optional] Configuration Options.
@return array [Response Body](https://cloud.google.com/datastore/reference/rest/v1/projects/commit#response-body)
Commit all mutations .