Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | public static function fromXML(DOMElement $xml): static |
||
57 | { |
||
58 | Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class); |
||
59 | Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class); |
||
60 | |||
61 | return new static($xml->textContent); |
||
62 | } |
||
64 |