Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 55.56% |
Changes | 0 |
1 | <?php |
||
8 | class FormElementTest extends FormElement |
||
9 | { |
||
10 | /** |
||
11 | * Constructor |
||
12 | * |
||
13 | * @param string $name of the element. |
||
14 | * @param array $attributes to set to the element. Default is an empty |
||
15 | * array. |
||
16 | */ |
||
17 | 4 | public function __construct($name, $attributes = []) |
|
18 | { |
||
19 | 4 | parent::__construct($name, $attributes); |
|
20 | 4 | $this['type'] = 'test'; |
|
21 | 4 | $this->UseNameAsDefaultLabel(); |
|
22 | 4 | } |
|
23 | |||
24 | |||
25 | |||
26 | /** |
||
27 | * Get HTML code for a element. |
||
28 | * |
||
29 | * @return string HTML code for the element. |
||
30 | */ |
||
31 | public function getHTML() |
||
36 | } |
||
37 | } |
||
38 |