You are here

class AcsfMessageResponseRest in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/AcsfMessageResponseRest.php \Drupal\acsf\AcsfMessageResponseRest

Defines a response from AcsfMessageRest.

Hierarchy

Expanded class hierarchy of AcsfMessageResponseRest

File

src/AcsfMessageResponseRest.php, line 8

Namespace

Drupal\acsf
View source
class AcsfMessageResponseRest extends AcsfMessageResponse {

  /**
   * Implements AcsfMessageResponse::failed().
   */
  public function failed() {
    if ($this->code >= 400) {
      return TRUE;
    }
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AcsfMessageResponse::$body public property The body of the response.
AcsfMessageResponse::$code public property The response code from the remote call.
AcsfMessageResponse::$endpoint public property The endpoint on the remote service.
AcsfMessageResponse::__construct public function Constructor.
AcsfMessageResponseRest::failed public function Implements AcsfMessageResponse::failed(). Overrides AcsfMessageResponse::failed