src/Helpers/FakeResponse.php
public function toResponse(): Response
    {
        return new Response(
            $this->status,
            $this->headers,
            $this->body,
            $this->httpVersion,
            $this->reason
        );
    }
public function toResponse(): Response
    {
        return new Response(
            $this->status,
            $this->headers,
            $this->body,
            $this->httpVersion,
            $this->reason
        );
    }
public function toResponse ( ) : Response { return new Response ( $ this -> status , $ this -> headers , $ this -> body , $ this -> httpVersion , $ this -> reason ) ; }
Generates HTTP Response.

@return Response
Generates HTTP Response .