Completed
Push — master ( 916f6f...ea2a7d )
by Jean-Christophe
03:42
created

HtmlRadio   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
namespace Ajax\semantic\html\modules\checkbox;
4
5
use Ajax\semantic\html\modules\checkbox\AbstractCheckbox;
6
use Ajax\semantic\html\base\constants\CheckboxType;
7
8
class HtmlRadio extends AbstractCheckbox {
9
10
	public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL, $checkboxType=NULL) {
11
		parent::__construct($identifier, $name, $label, $value, "radio", "radio checkbox");
12
		if (isset($checkboxType)===true) {
13
			$this->setType($checkboxType);
14
		}
15
	}
16
}