/** * Constructor function. If token is not yet present, set to null. * * @param string $base_url Base Url for keystone * @param array|\Guzzle\Common\Collection|null $token */ public function __construct($base_url, $token) { parent::__construct($base_url); if (!is_null($token)) { $this->setToken($token); } }
/** * ComputeClient constructor * * @param string $baseUrl Base URL for Nova * @param string $token Authentication token * @param string $tenantId */ public function __construct($baseUrl, $token, $tenantId) { parent::__construct($baseUrl); $this->setToken($token); $this->setTenantId($tenantId); }
/** * Constructor function. If token is not yet present, set to null. * * @param string $base_url Base Url for keystone * @param array|\Guzzle\Common\Collection|null $token */ public function __construct($base_url, $token) { parent::__construct($base_url); $this->setToken($token); }