private function decorateRequest(ServerRequestInterface $request)
    {
        if ($request instanceof Http\Request) {
            return $request;
        }

        return new Http\Request($this, $request);
    }
private function decorateRequest(ServerRequestInterface $request)
    {
        if ($request instanceof Http\Request) {
            return $request;
        }

        return new Http\Request($this, $request);
    }
private function decorateRequest ( ServerRequestInterface $ request ) { if ( $ request instanceof Http \ Request ) { return $ request ; } return new Http \ Request ( $ this , $ request ) ; }
Decorates a request to add this app to it.

@param ServerRequestInterface $request
@return ServerRequestInterface|Http\Request
Decorates a request to add this app to it .