Completed
Push — master ( 9de830...b49918 )
by Jean-Christophe
03:44
created

HtmlFormInput::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
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 5
rs 9.4285
cc 2
eloc 4
nc 2
nop 5
1
<?php
2
3
namespace Ajax\semantic\html\collections\form;
4
5
use Ajax\semantic\html\collections\form\HtmlFormField;
6
use Ajax\common\html\html5\HtmlInput;
7
8
class HtmlFormInput extends HtmlFormField {
9
10
	public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
11
		if(!isset($placeholder))
12
			$placeholder=$label;
13
		parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
14
	}
15
}