src/States/TransactionsTrait.php
protected function initTransaction(array $options = [])
    {
        if (!isset($options['transactionId'])) {
            $this->transactionId = IdGenerator::generateId();
            $this->getClient()->sendFrame(
                $this->getProtocol()->getBeginFrame($this->transactionId)
            );
        } else {
            $this->transactionId = $options['transactionId'];
        }
    }
protected function initTransaction(array $options = [])
    {
        if (!isset($options['transactionId'])) {
            $this->transactionId = IdGenerator::generateId();
            $this->getClient()->sendFrame(
                $this->getProtocol()->getBeginFrame($this->transactionId)
            );
        } else {
            $this->transactionId = $options['transactionId'];
        }
    }
protected function initTransaction ( array $ options = [ ] ) { if ( ! isset ( $ options [ 'transactionId' ] ) ) { $ this -> transactionId = IdGenerator :: generateId ( ) ; $ this -> getClient ( ) -> sendFrame ( $ this -> getProtocol ( ) -> getBeginFrame ( $ this -> transactionId ) ) ; } else { $ this -> transactionId = $ options [ 'transactionId' ] ; } }
Init the transaction state.

@param array $options
Init the transaction state .