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\wst_200502;
use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
/**
* A RequestedTokenCancelled element
*
* @package simplesamlphp/ws-security
*/
final class RequestedTokenCancelled extends AbstractWstElement
{
* Convert XML into a class instance
* @param \DOMElement $xml The XML element we should load
* @return static
* @throws \SimpleSAML\XML\Exception\InvalidDOMElementException
* If the qualified name of the supplied element is wrong
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();
}
* Convert this element to XML.
* @param \DOMElement|null $parent The element we should append this element to.
* @return \DOMElement
public function toXML(DOMElement $parent = null): DOMElement
return $this->instantiateParentElement($parent);