| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public static function fromXML(DOMElement $xml): static |
||
| 40 | { |
||
| 41 | $qualifiedName = static::getClassName(static::class); |
||
| 42 | Assert::eq( |
||
| 43 | $xml->localName, |
||
| 44 | $qualifiedName, |
||
| 45 | sprintf('Unexpected name for EmptyType: %s. Expected: %s.', $xml->localName, $qualifiedName), |
||
| 46 | InvalidDOMElementException::class, |
||
| 47 | ); |
||
| 48 | |||
| 49 | |||
| 50 | return new static(); |
||
| 51 | } |
||
| 65 |