| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 44 | public static function fromXML(DOMElement $xml): object |
||
| 45 | { |
||
| 46 | Assert::same($xml->localName, 'AttributeProfile', InvalidDOMElementException::class); |
||
| 47 | Assert::same($xml->namespaceURI, AttributeProfile::NS, InvalidDOMElementException::class); |
||
| 48 | |||
| 49 | return new self($xml->textContent); |
||
| 50 | } |
||
| 52 |