| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public static function fromXML(DOMElement $xml): object |
||
| 32 | { |
||
| 33 | Assert::same($xml->localName, 'X509IssuerName', InvalidDOMElementException::class); |
||
| 34 | Assert::same($xml->namespaceURI, X509IssuerName::NS, InvalidDOMElementException::class); |
||
| 35 | |||
| 36 | return new self($xml->textContent); |
||
| 37 | } |
||
| 39 |