You are here

public function CasPropertyBag::setAttribute in CAS 2.x

Same name and namespace in other branches
  1. 8 src/CasPropertyBag.php \Drupal\cas\CasPropertyBag::setAttribute()

Adds a single attribute.

Parameters

string $name: The attribute name.

mixed $value: The attribute value.

File

src/CasPropertyBag.php, line 127

Class

CasPropertyBag
Data model for CAS property bag.

Namespace

Drupal\cas

Code

public function setAttribute($name, $value) {
  $this->attributes[$name] = $value;
}