Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class RequestedTokenCancelled extends AbstractWstElement |
||
17 | { |
||
18 | /** |
||
19 | * Convert XML into a class instance |
||
20 | * |
||
21 | * @param \DOMElement $xml The XML element we should load |
||
22 | * @return static |
||
23 | * |
||
24 | * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException |
||
25 | * If the qualified name of the supplied element is wrong |
||
26 | */ |
||
27 | public static function fromXML(DOMElement $xml): static |
||
28 | { |
||
29 | Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class); |
||
30 | Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); |
||
31 | |||
32 | return new static(); |
||
33 | } |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Convert this element to XML. |
||
38 | * |
||
39 | * @param \DOMElement|null $parent The element we should append this element to. |
||
40 | * @return \DOMElement |
||
41 | */ |
||
42 | public function toXML(DOMElement $parent = null): DOMElement |
||
45 | } |
||
46 | } |
||
47 |