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