public function startTransaction(string $name, array $context = [], float $start = null): Transaction
    {
        // Create and Store Transaction
        $this->transactionsStore->register(
            $this->eventFactory->createTransaction($name, array_replace_recursive($this->sharedContext, $context), $start)
        );

        // Start the Transaction
        $transaction = $this->transactionsStore->fetch($name);

        if (null === $start) {
            $transaction->start();
        }

        return $transaction;
    }
public function startTransaction(string $name, array $context = [], float $start = null): Transaction
    {
        // Create and Store Transaction
        $this->transactionsStore->register(
            $this->eventFactory->createTransaction($name, array_replace_recursive($this->sharedContext, $context), $start)
        );

        // Start the Transaction
        $transaction = $this->transactionsStore->fetch($name);

        if (null === $start) {
            $transaction->start();
        }

        return $transaction;
    }
public function startTransaction ( string $ name , array $ context = [ ] , float $ start = null ) : Transaction { // Create and Store Transaction $ this -> transactionsStore -> register ( $ this -> eventFactory -> createTransaction ( $ name , array_replace_recursive ( $ this -> sharedContext , $ context ) , $ start ) ) ; // Start the Transaction $ transaction = $ this -> transactionsStore -> fetch ( $ name ) ; if ( null === $ start ) { $ transaction -> start ( ) ; } return $ transaction ; }
Start the Transaction capturing

@throws \PhilKra\Exception\Transaction\DuplicateTransactionNameException

@param string $name
@param array  $context

@return Transaction
Start the Transaction capturing