| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class FormScript extends FormElement |
||
| 14 | { |
||
| 15 | /** @var string text for the line label */ |
||
| 16 | protected string $strScript; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Cretae a script tag inside of the form. |
||
| 20 | * @param string $strScript Script to insert |
||
| 21 | */ |
||
| 22 | public function __construct(string $strScript) |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | * @see \SKien\Formgenerator\FormElement::fromXML() |
||
| 31 | * @internal |
||
| 32 | */ |
||
| 33 | static public function fromXML(\DOMElement $oXMLElement, FormCollection $oFormParent) : ?FormElement |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Insert the script at current position of the form. |
||
| 43 | * @return string |
||
| 44 | * @internal l |
||
| 45 | */ |
||
| 46 | public function getHTML() : string |
||
| 52 |