33        assert(is_string($value) || $value instanceof \DOMElement);
 
   35        if (is_string($value)) {
 
   39            $this->element->appendChild($doc->createTextNode($value));
 
   48        if ($value->namespaceURI === 
Constants::NS_SAML && $value->localName === 
'AttributeValue') {
 
   49            $this->element = Utils::copyElement($value);
 
   56        Utils::copyElement($value, $this->element);
 
   65    public function toXML(\DOMElement $parent)
 
   67        assert($this->element instanceof \DOMElement);
 
   68        assert($this->element->namespaceURI === \
SAML2\
Constants::NS_SAML && $this->element->localName === 
"AttributeValue");
 
   70        $v = Utils::copyElement($this->element, $parent);
 
   80        return $this->element->textContent;
 
   92        assert($this->element instanceof \DOMElement);
 
   94        $doc = $this->element->ownerDocument;
 
   97        foreach ($this->element->childNodes as 
$c) {
 
  112        return serialize($this->element->ownerDocument->saveXML($this->element));
 
  124        $this->element = $doc->documentElement;
 
An exception for terminatinating execution or to throw for unit testing.
const NS_XS
The namespace fox XML schema.
const NS_XSI
The namespace for XML schema instance.
const NS_SAML
The namespace for the SAML 2 assertions.
getString()
Returns a plain text content of the attribute value.
toXML(\DOMElement $parent)
Append this attribute value to an element.
__construct($value)
Create an AttributeValue.
__toString()
Convert this attribute value to a string.
unserialize($serialized)
Un-serialize this AttributeValue.
serialize()
Serialize this AttributeValue.