| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class FormHeader extends FormElement |
||
| 14 | { |
||
| 15 | /** @var string text for the header */ |
||
| 16 | protected string $strText; |
||
| 17 | /** @var int level of the HTML header element */ |
||
| 18 | protected int $iLevel; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create header element. |
||
| 22 | * @param string $strText Text to display |
||
| 23 | * @param int $iLevel level of the header (<h1> ... <h5>) |
||
| 24 | */ |
||
| 25 | public function __construct(string $strText, $iLevel = 2) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | * @see \SKien\Formgenerator\FormElement::fromXML() |
||
| 35 | * @internal |
||
| 36 | */ |
||
| 37 | static public function fromXML(\DOMElement $oXMLElement, FormCollection $oFormParent) : ?FormElement |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Build the HTML-notation for the header text |
||
| 50 | * @return string |
||
| 51 | * @internal |
||
| 52 | */ |
||
| 53 | public function getHTML() : string |
||
| 59 |