| Conditions | 6 |
| Paths | 32 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function html(): string |
||
| 28 | { |
||
| 29 | $content = '<input class="'.$this->class.'"'; |
||
| 30 | $content .= $this->required ? ' required="required"' : ''; |
||
| 31 | $content .= ' type="text" name="' . $this->getNamePrefix() . $this->name . |
||
| 32 | ($this->batch ? '[{_creation_form_items_counter}]' : '') . '"'; |
||
| 33 | $content .= $this->disabled ? ' disabled ' : ''; |
||
| 34 | $content .= $this->toggler === '' ? '' : 'toggler="' . $this->toggler . '" '; |
||
| 35 | $content .= $this->toggler === '' ? '' : 'toggle-value="' . $this->toggleValue . '"'; |
||
| 36 | |||
| 37 | return $content . '>'; |
||
| 38 | } |
||
| 40 |