Total Complexity | 6 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Coverage | 86.36% |
Changes | 0 |
1 | <?php |
||
8 | class FormElementSelectMultiple extends FormElementSelect |
||
9 | { |
||
10 | /** |
||
11 | * Constructor |
||
12 | * |
||
13 | * @param string $name of the element. |
||
14 | * @param array $attributes to set to the element. Default is an |
||
15 | * empty array. |
||
16 | */ |
||
17 | 4 | public function __construct($name, $attributes = []) |
|
21 | 3 | } |
|
22 | |||
23 | |||
24 | |||
25 | /** |
||
26 | * Get the value of the form element. |
||
27 | * |
||
28 | * @return array the checked values of the form element. |
||
29 | */ |
||
30 | public function value() |
||
31 | { |
||
32 | return $this['checked']; |
||
33 | } |
||
34 | |||
35 | |||
36 | |||
37 | /** |
||
38 | * Get HTML code for a element. |
||
39 | * |
||
40 | * @return string HTML code for the element. |
||
41 | * |
||
42 | * @SuppressWarnings(PHPMD.UnusedLocalVariable) |
||
43 | */ |
||
44 | 2 | public function getHTML() |
|
69 | EOD; |
||
70 | } |
||
72 |