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

HtmlInput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
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
}