Fieldset   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A renderHead() 0 3 1
A renderFoot() 0 3 1
A __construct() 0 5 1
1
<?php
2
namespace ntentan\honam\engines\php\helpers\form;
3
4
class Fieldset extends Container
5
{
6
    public function __construct($label="",$description="")
7
    {
8
        parent::__construct();
9
        $this->setLabel($label);
10
        $this->setDescription($description);
11
    }
12
13
    public function renderHead()
14
    {
15
        return $this->templateRenderer->render('fieldset_head.tpl.php', ['element' => $this]);
16
    }
17
18
    public function renderFoot()
19
    {
20
        return $this->templateRenderer->render('fieldset_foot.tpl.php',['element' => $this]);
21
    }
22
}
23
24