| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public static function fromXML(DOMElement $xml): static |
||
| 32 | { |
||
| 33 | Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class); |
||
| 34 | Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class); |
||
| 35 | |||
| 36 | return new static( |
||
| 37 | P::getChildrenOfClass($xml), |
||
| 38 | ); |
||
| 41 |