You are here

class SimpleRestResponse in Acquia Cloud Site Factory Connector 8.2

Same name in this branch
  1. 8.2 acsf_init/lib/sites/g/SimpleRest.php \Acquia\SimpleRest\SimpleRestResponse
  2. 8.2 acsf_init/lib/cloud_hooks/common/pre-web-activate/000-acquia-deployment.php \SimpleRestResponse
Same name and namespace in other branches
  1. 8 acsf_init/lib/sites/g/SimpleRest.php \Acquia\SimpleRest\SimpleRestResponse

Class SimpleRestResponse.

Holds the response.

Hierarchy

Expanded class hierarchy of SimpleRestResponse

1 file declares its use of SimpleRestResponse
sites.inc in acsf_init/lib/sites/g/sites.inc
ACSF helper functions for Drupal's multi-site directory aliasing feature.

File

acsf_init/lib/sites/g/SimpleRest.php, line 193
Contains classes needed for sending requests to the Site Factory.

Namespace

Acquia\SimpleRest
View source
class SimpleRestResponse {

  /**
   * The request endpoint.
   *
   * @var string
   */
  public $endpoint;

  /**
   * The response code.
   *
   * @var string
   */
  public $code;

  /**
   * The response body.
   *
   * @var array
   */
  public $body;

  /**
   * Constructs a new instance of SimpleRestResponse.
   *
   * @param string $endpoint
   *   The request endpoint.
   * @param string $response_code
   *   The response code.
   * @param array $response_body
   *   The response body.
   */
  public function __construct($endpoint, $response_code, array $response_body) {
    $this->endpoint = $endpoint;
    $this->code = $response_code;
    $this->body = $response_body;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SimpleRestResponse::$body public property The response body.
SimpleRestResponse::$code public property The response code.
SimpleRestResponse::$endpoint public property The request endpoint.
SimpleRestResponse::__construct public function Constructs a new instance of SimpleRestResponse.