Checkbox   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 23
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setBoxLabel() 0 3 1
A setChecked() 0 3 1
A getChecked() 0 3 1
A getBoxLabel() 0 3 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
}