Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
7 | class Input extends FormElement |
||
8 | { |
||
9 | /** @var string */ |
||
10 | public $type = 'text'; |
||
11 | |||
12 | /** @var string */ |
||
13 | public $placeholder; |
||
14 | |||
15 | protected function attributesList() |
||
16 | { |
||
17 | return [ |
||
18 | 'id', 'name', 'type', 'placeholder', 'value', 'class', 'required', 'disabled', 'readonly', 'autocomplete', |
||
19 | ]; |
||
20 | } |
||
21 | |||
22 | protected function setSpecificAttributes() |
||
26 | } |
||
27 | |||
28 | protected function setPlaceholder() |
||
29 | { |
||
30 | $this->placeholder = $this->params->get('placeholder'); |
||
31 | } |
||
32 | |||
33 | protected function setType() |
||
36 | } |
||
37 | |||
38 | protected function setStyles() |
||
44 |