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

        $options['isRetry'] = isset($options['isRetry'])
            ? $options['isRetry']
            : false;

        return new Transaction($this, $session, $res['id'], $options['isRetry']);
    }
public function createTransaction(Session $session, array $res = [], array $options = [])
    {
        $res += [
            'id' => null
        ];

        $options['isRetry'] = isset($options['isRetry'])
            ? $options['isRetry']
            : false;

        return new Transaction($this, $session, $res['id'], $options['isRetry']);
    }
public function createTransaction ( Session $ session , array $ res = [ ] , array $ options = [ ] ) { $ res += [ 'id' => null ] ; $ options [ 'isRetry' ] = isset ( $ options [ 'isRetry' ] ) ? $ options [ 'isRetry' ] : false ; return new Transaction ( $ this , $ session , $ res [ 'id' ] , $ options [ 'isRetry' ] ) ; }
Create a Transaction instance from a response object.

@param Session $session The session the transaction belongs to.
@param array $res [optional] The createTransaction response.
@param array $options [optional] Options for the transaction object.
@return Transaction
Create a Transaction instance from a response object .