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

Textarea   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 6 1
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