private function buildResponse($response_type, $method, $status_code, $request_url, array $configuration = [], array $response_data = []) {
    $object = FALSE;
    // Check that a string was passed.
    if (is_string($response_type)) {
      // Check to see if this class exists.
      if (class_exists($response_type)) {
        // Check that this class extends the ContentTypeBase class.
        if (is_subclass_of($response_type, 'BazaarvoiceRequest\\Response\\BazaarvoiceResponseBase')) {
          // Instantiate object of this class.
          $object = new $response_type($method, $status_code, $request_url, $configuration, $response_data);
        }
      }
    }

    return $object;
  }
private function buildResponse($response_type, $method, $status_code, $request_url, array $configuration = [], array $response_data = []) {
    $object = FALSE;
    // Check that a string was passed.
    if (is_string($response_type)) {
      // Check to see if this class exists.
      if (class_exists($response_type)) {
        // Check that this class extends the ContentTypeBase class.
        if (is_subclass_of($response_type, 'BazaarvoiceRequest\\Response\\BazaarvoiceResponseBase')) {
          // Instantiate object of this class.
          $object = new $response_type($method, $status_code, $request_url, $configuration, $response_data);
        }
      }
    }

    return $object;
  }
private function buildResponse ( $ response_type , $ method , $ status_code , $ request_url , array $ configuration = [ ] , array $ response_data = [ ] ) { $ object = FALSE ; // Check that a string was passed. if ( is_string ( $ response_type ) ) { // Check to see if this class exists. if ( class_exists ( $ response_type ) ) { // Check that this class extends the ContentTypeBase class. if ( is_subclass_of ( $ response_type , 'BazaarvoiceRequest\\Response\\BazaarvoiceResponseBase' ) ) { // Instantiate object of this class. $ object = new $ response_type ( $ method , $ status_code , $ request_url , $ configuration , $ response_data ) ; } } } return $ object ; }
Returns a BazaarvoiceRequest\Response object.

@param string $response_type
Class name of response type to load.

@param string $method
HTTP request method.

@param string $status_code
HTTP request status code.

@param string $request_url
URL that request was made to.

@param array $configuration
Configuration settings that were used in request.

@param array $response_data
Raw data that was returned from response.

@return bool|mixed
FALSE or instance of response class.
Returns a BazaarvoiceRequest \ Response object .