for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\SAML2\XML\samlp;
use DOMElement;
use SimpleSAML\SAML2\Assert\Assert;
use SimpleSAML\XML\SchemaValidatableElementInterface;
use SimpleSAML\XML\SchemaValidatableElementTrait;
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
/**
* Class representing a samlp:Terminate element.
*
* @package simplesaml/saml2
*/
final class Terminate extends AbstractSamlpElement implements SchemaValidatableElementInterface
{
use SchemaValidatableElementTrait;
* Convert XML into a Terminate
* @param \DOMElement $xml The XML element we should load
* @return static
* @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException
* if the qualified name of the supplied element is wrong
public static function fromXML(DOMElement $xml): static
Assert::same($xml->localName, 'Terminate', InvalidDOMElementException::class);
Assert::same($xml->namespaceURI, Terminate::NS, InvalidDOMElementException::class);
return new static();
}
* Convert this Terminate to XML.
* @param \DOMElement|null $parent The element we are converting to XML.
* @return \DOMElement The XML element after adding the data corresponding to this Terminate.
public function toXML(?DOMElement $parent = null): DOMElement
return $this->instantiateParentElement($parent);