private function buildPipeline()
    {
        $nextCallable = function ($item) {
            // the final callable is a no-op
        };

        foreach ($this->getStepsSortedDescByPriority() as $step) {
            $nextCallable = function ($item) use ($step, $nextCallable) {
                return $step->process($item, $nextCallable);
            };
        }

        return $nextCallable;
    }
private function buildPipeline()
    {
        $nextCallable = function ($item) {
            // the final callable is a no-op
        };

        foreach ($this->getStepsSortedDescByPriority() as $step) {
            $nextCallable = function ($item) use ($step, $nextCallable) {
                return $step->process($item, $nextCallable);
            };
        }

        return $nextCallable;
    }
private function buildPipeline ( ) { $ nextCallable = function ( $ item ) { // the final callable is a no-op } ; foreach ( $ this -> getStepsSortedDescByPriority ( ) as $ step ) { $ nextCallable = function ( $ item ) use ( $ step , $ nextCallable ) { return $ step -> process ( $ item , $ nextCallable ) ; } ; } return $ nextCallable ; }
Builds the pipeline

@return callable
Builds the pipeline