SAML2\Assertion::setAttributes PHP Method

setAttributes() public method

Replace all attributes.
public setAttributes ( array $attributes )
$attributes array All new attributes, as an associative array.
    public function setAttributes(array $attributes)
    {
        $this->attributes = $attributes;
    }

Usage Example

Ejemplo n.º 1
0
 public function transform(Assertion $assertion)
 {
     if (!$this->identityProvider->hasBase64EncodedAttributes()) {
         return $assertion;
     }
     $attributes = $assertion->getAttributes();
     $keys = array_keys($attributes);
     $decoded = array_map(array($this, 'decodeValue'), $attributes);
     $attributes = array_combine($keys, $decoded);
     $assertion->setAttributes($attributes);
 }
All Usage Examples Of SAML2\Assertion::setAttributes