Completed
Push — master ( 409900...f20dfb )
by Jean-Christophe
03:24
created

HtmlInput::setInputType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Ajax\common\html\html5;
4
5
use Ajax\common\html\HtmlSingleElement;
6
7
class HtmlInput extends HtmlSingleElement {
8
9
	public function __construct($identifier,$type="text") {
10
		parent::__construct($identifier, "input");
11
		$this->setProperty("name", $identifier);
12
		$this->setProperty("value", "");
13
		$this->setProperty("type", $type);
14
	}
15
16
	public function setValue($value) {
17
		$this->setProperty("value", $value);
18
	}
19
20
	public function setInputType($value) {
21
		$this->setProperty("type", $value);
22
	}
23
}