1 | <?php |
||
24 | class Checkbox extends AbstractInput implements InputInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $checked = null; |
||
30 | |||
31 | /** |
||
32 | * @var string|mixed |
||
33 | */ |
||
34 | protected $value = 0; |
||
35 | |||
36 | /** |
||
37 | * @var string Renderer class |
||
38 | */ |
||
39 | protected $rendererClass = CheckboxRenderer::class; |
||
40 | |||
41 | /** |
||
42 | * Crates the input with the attribute type as text |
||
43 | */ |
||
44 | 4 | public function __construct() |
|
48 | |||
49 | /** |
||
50 | * Sets the value of the checkbox |
||
51 | * |
||
52 | * @param mixed $value |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | 2 | public function setValue($value) |
|
61 | |||
62 | /** |
||
63 | * Check whenever the checkbox state is checked |
||
64 | * |
||
65 | * @return bool|mixed |
||
66 | */ |
||
67 | 4 | public function isChecked() |
|
77 | |||
78 | /** |
||
79 | * Get the attributes map collection |
||
80 | * |
||
81 | * @return AttributesMapInterface |
||
82 | */ |
||
83 | 4 | public function getAttributes() |
|
91 | |||
92 | |||
93 | } |