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

HtmlRadio::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 2
eloc 4
nc 2
nop 5
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
}