private function createResponseBuilder(): ResponseBuilder
    {
        $body = $this->streamFactory->createStreamFromFile('php://temp', 'w+b');

        $response = $this->responseFactory
            ->createResponse(200)
            ->withBody($body);

        return new ResponseBuilder($response);
    }
private function createResponseBuilder(): ResponseBuilder
    {
        $body = $this->streamFactory->createStreamFromFile('php://temp', 'w+b');

        $response = $this->responseFactory
            ->createResponse(200)
            ->withBody($body);

        return new ResponseBuilder($response);
    }
private function createResponseBuilder ( ) : ResponseBuilder { $ body = $ this -> streamFactory -> createStreamFromFile ( 'php://temp' , 'w+b' ) ; $ response = $ this -> responseFactory -> createResponse ( 200 ) -> withBody ( $ body ) ; return new ResponseBuilder ( $ response ) ; }
Create builder to use for building response object.

@return ResponseBuilder
Create builder to use for building response object .