| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class LabelField extends TextField |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Generating input feld |
||
| 22 | * |
||
| 23 | * @return string HTML representation of the input field |
||
| 24 | */ |
||
| 25 | public function html(): string |
||
| 26 | { |
||
| 27 | $content = '<div class="form-group col-md-12">'; |
||
| 28 | $content .= '<label class="control-label">' . $this->text . '</label>'; |
||
| 29 | |||
| 30 | return $content . '</div>'; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Getting field type |
||
| 35 | * |
||
| 36 | * @return string Field type |
||
| 37 | */ |
||
| 38 | public function getType(): string |
||
| 39 | { |
||
| 40 | return 'label'; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * |
||
| 45 | * {@inheritdoc} |
||
| 46 | * @see \Mezon\Gui\Control::fillAllRow() |
||
| 47 | */ |
||
| 48 | public function fillAllRow(): bool |
||
| 51 | } |
||
| 52 | } |
||
| 53 |