44
55namespace SimpleSAML \WebServices \Addressing \XML \wsa_200408 ;
66
7- use DOMElement ;
7+ use Dom ;
88use SimpleSAML \WebServices \Addressing \Assert \Assert ;
99use SimpleSAML \XML \ExtendableAttributesTrait ;
1010use SimpleSAML \XML \TypedTextContentTrait ;
@@ -49,12 +49,12 @@ final public function __construct(AnyURIValue $value, array $namespacedAttribute
4949 /**
5050 * Convert XML into a class instance
5151 *
52- * @param \DOMElement $xml The XML element we should load
52+ * @param \Dom\Element $xml The XML element we should load
5353 *
5454 * @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException
5555 * If the qualified name of the supplied element is wrong
5656 */
57- public static function fromXML (DOMElement $ xml ): static
57+ public static function fromXML (Dom \ Element $ xml ): static
5858 {
5959 Assert::same ($ xml ->localName , static ::getLocalName (), InvalidDOMElementException::class);
6060 Assert::same ($ xml ->namespaceURI , static ::NS , InvalidDOMElementException::class);
@@ -66,9 +66,9 @@ public static function fromXML(DOMElement $xml): static
6666 /**
6767 * Convert this element to XML.
6868 *
69- * @param \DOMElement |null $parent The element we should append this element to.
69+ * @param \Dom\Element |null $parent The element we should append this element to.
7070 */
71- public function toXML (?DOMElement $ parent = null ): DOMElement
71+ public function toXML (?Dom \ Element $ parent = null ): Dom \ Element
7272 {
7373 $ e = $ this ->instantiateParentElement ($ parent );
7474 $ e ->textContent = $ this ->getContent ()->getValue ();
0 commit comments