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

HtmlFormInput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

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