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

Textarea::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
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