You are here

class SimpleRestCreds 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\SimpleRestCreds
  2. 8.2 acsf_init/lib/cloud_hooks/common/pre-web-activate/000-acquia-deployment.php \SimpleRestCreds
Same name and namespace in other branches
  1. 8 acsf_init/lib/sites/g/SimpleRest.php \Acquia\SimpleRest\SimpleRestCreds

Hierarchy

Expanded class hierarchy of SimpleRestCreds

1 file declares its use of SimpleRestCreds
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 18
Contains classes needed for sending requests to the Site Factory.

Namespace

Acquia\SimpleRest
View source
class SimpleRestCreds {

  // phpcs:enable

  /**
   * The username to be used to contact Site Factory.
   *
   * @var string
   */
  public $name;

  /**
   * The password to be used to contact Site Factory.
   *
   * @var string
   */
  public $password;

  /**
   * The URL of the Site Factory.
   *
   * @var string
   */
  public $url;

  /**
   * Creates a new instance of SimpleRestCreds.
   *
   * @param string $name
   *   The username to be used to contact Site Factory.
   * @param string $password
   *   The password to be used to contact Site Factory.
   * @param string $url
   *   The URL of the Site Factory.
   */
  public function __construct($name, $password, $url) {
    $this->name = $name;
    $this->password = $password;
    $this->url = $url;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SimpleRestCreds::$name public property The username to be used to contact Site Factory.
SimpleRestCreds::$password public property The password to be used to contact Site Factory.
SimpleRestCreds::$url public property The URL of the Site Factory.
SimpleRestCreds::__construct public function Creates a new instance of SimpleRestCreds.