Passed
Push — main ( 057ebd...c36d30 )
by James Ekow Abaka
31:17
created

Textarea::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
4
namespace ntentan\honam\engines\php\helpers\form;
5
6
class Textarea extends Field
7
{
8
    public function render()
9
    {
10
        $this->setAttribute('rows', 10);
11
        $this->setAttribute('cols', 80);
12
        $this->setAttribute('name', $this->getName());
13
        return $this->templateRenderer->render("textarea_element.tpl.php", ['element' => $this]);
14
    }
15
}
16