| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | static public function fromXML(\DOMElement $oXMLElement, FormCollection $oFormParent) : ?FormElement |
||
| 38 | { |
||
| 39 | $strText = self::getAttribString($oXMLElement, 'text'); |
||
| 40 | $iLevel = self::getAttribInt($oXMLElement, 'level', 2); |
||
| 41 | $oFormElement = new self($strText, $iLevel); |
||
| 42 | $oFormParent->add($oFormElement); |
||
| 43 | $oFormElement->readAdditionalXML($oXMLElement); |
||
| 44 | |||
| 45 | return $oFormElement; |
||
| 46 | } |
||
| 59 |