public function register(Transaction $transaction)
    {
        $name = $transaction->getTransactionName();

        // Do not override the
        if (isset($this->store[$name]) === true) {
            throw new DuplicateTransactionNameException($name);
        }

        // Push to Store
        $this->store[$name] = $transaction;
    }
public function register(Transaction $transaction)
    {
        $name = $transaction->getTransactionName();

        // Do not override the
        if (isset($this->store[$name]) === true) {
            throw new DuplicateTransactionNameException($name);
        }

        // Push to Store
        $this->store[$name] = $transaction;
    }
public function register ( Transaction $ transaction ) { $ name = $ transaction -> getTransactionName ( ) ; // Do not override the if ( isset ( $ this -> store [ $ name ] ) === true ) { throw new DuplicateTransactionNameException ( $ name ) ; } // Push to Store $ this -> store [ $ name ] = $ transaction ; }
Register a Transaction

@throws \PhilKra\Exception\Transaction\DuplicateTransactionNameException

@param \PhilKra\Events\Transaction $transaction

@return void
Register a Transaction