| Total Complexity | 8 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | class Textarea extends FormElement |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | public $placeholder; |
||
| 11 | |||
| 12 | /** @var int */ |
||
| 13 | public $rows = 5; |
||
| 14 | |||
| 15 | protected function attributesList() |
||
| 16 | { |
||
| 17 | return [ |
||
| 18 | 'id', 'name', 'placeholder', 'rows', 'class', 'required', 'disabled', 'readonly', 'autocomplete', |
||
| 19 | ]; |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function setSpecificAttributes() |
||
| 23 | { |
||
| 24 | $this->setPlaceholder(); |
||
| 25 | $this->setRows(); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function setPlaceholder() |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | protected function setRows() |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 |