src/Client.php
protected function createTransaction(array $options = null, $callable = null)
    {
        $transaction = new MultiExecTransaction($this, $options);

        if (isset($callable)) {
            return $transaction->execute($callable);
        }

        return $transaction;
    }
protected function createTransaction(array $options = null, $callable = null)
    {
        $transaction = new MultiExecTransaction($this, $options);

        if (isset($callable)) {
            return $transaction->execute($callable);
        }

        return $transaction;
    }
protected function createTransaction ( array $ options = null , $ callable = null ) { $ transaction = new MultiExecTransaction ( $ this , $ options ) ; if ( isset ( $ callable ) ) { return $ transaction -> execute ( $ callable ) ; } return $ transaction ; }
Actual transaction context initializer method.

@param array $options  Options for the context.
@param mixed $callable Optional callable used to execute the context.

@return MultiExecTransaction|array
Actual transaction context initializer method .