| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class TextareaField extends FormField |
||
| 8 | { |
||
| 9 | protected $type = 'textarea'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Set rows count. |
||
| 13 | * |
||
| 14 | * @param int $rows |
||
| 15 | * |
||
| 16 | * @return TextareaField |
||
| 17 | */ |
||
| 18 | public function withRows(int $rows) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get rows count. |
||
| 25 | * |
||
| 26 | * @return int|null |
||
| 27 | */ |
||
| 28 | public function rows() |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set columns count. |
||
| 35 | * |
||
| 36 | * @param int $cols |
||
| 37 | * |
||
| 38 | * @return TextareaField |
||
| 39 | */ |
||
| 40 | public function withCols(int $cols) |
||
| 41 | { |
||
| 42 | return $this->withAttribute('cols', $cols); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get columns count. |
||
| 47 | * |
||
| 48 | * @return int|null |
||
| 49 | */ |
||
| 50 | public function cols() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |