public function execute(TransactionData $transactionData, $argument = null)
    {
        if ($argument instanceof ClassArgumentObject) {
            $middleware = $argument->getInstance();

            $transactionData->setResponse(
                $middleware(
                    $transactionData->getRequest(),
                    $transactionData->getResponse(),
                    $argument->getArgument()
                )
            );
        }
    }
public function execute(TransactionData $transactionData, $argument = null)
    {
        if ($argument instanceof ClassArgumentObject) {
            $middleware = $argument->getInstance();

            $transactionData->setResponse(
                $middleware(
                    $transactionData->getRequest(),
                    $transactionData->getResponse(),
                    $argument->getArgument()
                )
            );
        }
    }
public function execute ( TransactionData $ transactionData , $ argument = null ) { if ( $ argument instanceof ClassArgumentObject ) { $ middleware = $ argument -> getInstance ( ) ; $ transactionData -> setResponse ( $ middleware ( $ transactionData -> getRequest ( ) , $ transactionData -> getResponse ( ) , $ argument -> getArgument ( ) ) ) ; } }
Executes a PSR-7 middleware.

@param \Mcustiel\PowerRoute\Common\TransactionData                $transactionData
@param \Mcustiel\PowerRoute\Common\Conditions\ClassArgumentObject $argument
Executes a PSR - 7 middleware .