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