Completed
Push — master ( db82f0...0ba4b1 )
by Jean-Christophe
03:22
created

HtmlInput::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 6
nc 2
nop 4
1
<?php
2
3
namespace Ajax\semantic\html\elements;
4
5
use Ajax\service\JString;
6
use Ajax\semantic\html\base\HtmlSemDoubleElement;
7
8
class HtmlInput extends HtmlSemDoubleElement{
9
10
	public function __construct($identifier,$value="",$type="text",$placeholder=""){
11
		parent::__construct("div-".$identifier,"div","ui input");
12
		$this->content=new \Ajax\common\html\html5\HtmlInput($identifier,$type);
13
		$this->content->setProperty("value", $value);
14
		if(JString::isNotNull($placeholder))
15
			$this->content->setProperty("placeholder", $placeholder);
16
	}
17
}