private function createResponse($content, $headers, \stdClass $curlMetaData) {
        $response = new Response();
        $response->setContent($content);
        $response->headers->add($headers);
        $response->setStatusCode($curlMetaData->http_code);

        return $response;
    }
private function createResponse($content, $headers, \stdClass $curlMetaData) {
        $response = new Response();
        $response->setContent($content);
        $response->headers->add($headers);
        $response->setStatusCode($curlMetaData->http_code);

        return $response;
    }
private function createResponse ( $ content , $ headers , \ stdClass $ curlMetaData ) { $ response = new Response ( ) ; $ response -> setContent ( $ content ) ; $ response -> headers -> add ( $ headers ) ; $ response -> setStatusCode ( $ curlMetaData -> http_code ) ; return $ response ; }
Maps the curl response to a Symfony response

@SuppressWarnings("PHPMD.StaticAccess");

@param string    $content
@param array     $headers
@param \stdClass $curlMetaData

@return Response
Maps the curl response to a Symfony response