Checkbox::setChecked()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * ExtForms - Checkbox.php
4
 *
5
 * Initial version by: MisterX
6
 * Initial version created on: 31.07.2015
7
 */
8
9
namespace Ext\Form\Field;
10
11
12
class Checkbox extends Base
13
{
14
15
	public function setBoxLabel($boxLabel){
16
		return $this->setProperty('boxLabel',$boxLabel);
17
	}
18
19
	public function setChecked($checked){
20
		return $this->setProperty('checked',(bool)$checked);
21
	}
22
23
	public function getChecked(){
24
		return $this->getProperty('checked');
25
	}
26
27
	public function getBoxLabel(){
28
		return $this->getProperty('boxLabel');
29
	}
30
31
32
33
34
}