private function createResponse(ResponseInterface $adapterResponse = null)
    {
        $response = new Response();

        if ($adapterResponse !== null) {
            $response->setCode($adapterResponse->getStatusCode());
            $response->setHeaders(new ParameterBag($adapterResponse->getHeaders()));
            $response->setBody((string) $adapterResponse->getBody());
        }

        return $response;
    }
private function createResponse(ResponseInterface $adapterResponse = null)
    {
        $response = new Response();

        if ($adapterResponse !== null) {
            $response->setCode($adapterResponse->getStatusCode());
            $response->setHeaders(new ParameterBag($adapterResponse->getHeaders()));
            $response->setBody((string) $adapterResponse->getBody());
        }

        return $response;
    }
private function createResponse ( ResponseInterface $ adapterResponse = null ) { $ response = new Response ( ) ; if ( $ adapterResponse !== null ) { $ response -> setCode ( $ adapterResponse -> getStatusCode ( ) ) ; $ response -> setHeaders ( new ParameterBag ( $ adapterResponse -> getHeaders ( ) ) ) ; $ response -> setBody ( ( string ) $ adapterResponse -> getBody ( ) ) ; } return $ response ; }
Create the response object

@param  ResponseInterface         $adapterResponse
@return \Tmdb\HttpClient\Response
Create the response object