Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Textarea extends AbstractStandardFormControl implements FormFieldInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | public $rows; |
||
14 | |||
15 | /** |
||
16 | * Get the value of rows |
||
17 | * |
||
18 | * @return int |
||
19 | */ |
||
20 | public function getRows(): int |
||
21 | { |
||
22 | return $this->rows; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Set the value of rows |
||
27 | * |
||
28 | * @param int $rows |
||
29 | * |
||
30 | * @return self |
||
31 | */ |
||
32 | public function setRows(int $rows) |
||
33 | { |
||
34 | $this->rows = $rows; |
||
35 | |||
36 | return $this; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | */ |
||
42 | protected function resolveAttributes(): AbstractHtmlElement |
||
43 | { |
||
44 | return parent::resolveAttributes() |
||
45 | ->addAttribute('rows', $this->rows); |
||
|
|||
46 | } |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | */ |
||
51 | protected function renderHtmlMarkup(): string |
||
54 | } |
||
55 | } |
||
56 |