Spanner/src/Operation.php
public function commit(Session $session, array $mutations, array $options = [])
    {
        $options += [
            'transactionId' => null
        ];

        $res = $this->connection->commit($this->arrayFilterRemoveNull([
            'mutations' => $mutations,
            'session' => $session->name(),
            'database' => $session->info()['database']
        ]) + $options);

        $time = $this->parseTimeString($res['commitTimestamp']);
        return new Timestamp($time[0], $time[1]);
    }
public function commit(Session $session, array $mutations, array $options = [])
    {
        $options += [
            'transactionId' => null
        ];

        $res = $this->connection->commit($this->arrayFilterRemoveNull([
            'mutations' => $mutations,
            'session' => $session->name(),
            'database' => $session->info()['database']
        ]) + $options);

        $time = $this->parseTimeString($res['commitTimestamp']);
        return new Timestamp($time[0], $time[1]);
    }
public function commit ( Session $ session , array $ mutations , array $ options = [ ] ) { $ options += [ 'transactionId' => null ] ; $ res = $ this -> connection -> commit ( $ this -> arrayFilterRemoveNull ( [ 'mutations' => $ mutations , 'session' => $ session -> name ( ) , 'database' => $ session -> info ( ) [ 'database' ] ] ) + $ options ) ; $ time = $ this -> parseTimeString ( $ res [ 'commitTimestamp' ] ) ; return new Timestamp ( $ time [ 0 ] , $ time [ 1 ] ) ; }
Commit all enqueued mutations.

@codingStandardsIgnoreStart
@param Session $session The session ID to use for the commit.
@param Transaction $transaction The transaction to commit.
@param array $options [optional] {
Configuration options.

@type string $transactionId The ID of the transaction.
}
@return Timestamp The commit Timestamp.
Commit all enqueued mutations .