for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\WSSecurity\XML\fed;
use DOMElement;
use SimpleSAML\WSSecurity\Assert\Assert;
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
use SimpleSAML\XMLSchema\Type\StringValue;
/**
* A PPID element
*
* @package simplesamlphp/ws-security
*/
final class PPID extends AbstractAttributeExtensibleString
{
* Create a class from XML
* @param \DOMElement $xml
* @return static
public static function fromXML(DOMElement $xml): static
Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class);
Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class);
return new static(
StringValue::fromString($xml->textContent),
self::getAttributesNSFromXML($xml),
);
}