public function getErrorProcessor(): MiddlewareInterface
    {
        if (is_null($this->errorProcessor)) {
            if (method_exists($this, 'resolve')) {
                $this->setErrorProcessor($this->resolve(Middleware::class));
            } else {
                $this->setErrorProcessor(new Middleware());
            }
        }

        return $this->errorProcessor;
    }
public function getErrorProcessor(): MiddlewareInterface
    {
        if (is_null($this->errorProcessor)) {
            if (method_exists($this, 'resolve')) {
                $this->setErrorProcessor($this->resolve(Middleware::class));
            } else {
                $this->setErrorProcessor(new Middleware());
            }
        }

        return $this->errorProcessor;
    }
public function getErrorProcessor ( ) : MiddlewareInterface { if ( is_null ( $ this -> errorProcessor ) ) { if ( method_exists ( $ this , 'resolve' ) ) { $ this -> setErrorProcessor ( $ this -> resolve ( Middleware :: class ) ) ; } else { $ this -> setErrorProcessor ( new Middleware ( ) ) ; } } return $ this -> errorProcessor ; }
Returns an error handler object

@return MiddlewareInterface
Returns an error handler object