SAML2\Assertion::getAttributes PHP Method

getAttributes() public method

Retrieve all attributes.
public getAttributes ( ) : array
return array All attributes, as an associative array.
    public function getAttributes()
    {
        return $this->attributes;
    }

Usage Example

 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::getAttributes