Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public static function fromXML(DOMElement $xml): static |
||
25 | { |
||
26 | Assert::same($xml->localName, static::getLocalName(), InvalidDOMElementException::class); |
||
27 | Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class); |
||
28 | |||
29 | return new static( |
||
30 | self::getOptionalAttribute($xml, 'Algorithm', null), |
||
|
|||
31 | ); |
||
34 |