| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Textarea extends Text |
||
| 13 | { |
||
| 14 | public function __construct($label, $attributes = []) |
||
| 15 | { |
||
| 16 | parent::__construct($label, $attributes); |
||
| 17 | $this->Attributes()->set('type','textarea'); |
||
| 18 | $this->Attributes()->set('rows',$this->Attributes()->get('rows',6)); |
||
| 19 | $this->Attributes()->set('cols',$this->Attributes()->get('cols',60)); |
||
| 20 | $this->Attributes()->Ignore('value'); |
||
| 21 | $this->Label()->Attribute()->add(['style'=>'vertical-align: top;']); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function RenderHtml(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | } |