Passed
Branch tests1.5 (59f3fd)
by Wanderson
02:32
created

Input::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Win\Html\Form;
4
5
use Win\Html\Html;
6
7
/**
8
 * Input Abstrato
9
 * <input>
10
 */
11
abstract class Input extends Html {
12
13
	/** @var string */
14
	protected $type;
15
16
	/** @var string */
17
	protected $value;
18
19
	/**
20
	 * @param string $type
21
	 * @param string $name
22
	 * @param mixed $value
23
	 * @param string[] $attributes
24
	 */
25
	public function __construct($type, $name, $value, $attributes) {
26
		$this->type = $type;
27
		$this->value = $value;
28
		parent::__construct($name, $attributes);
29
	}
30
31
	/** @return string */
32
	public function getValue() {
33
		return $this->value;
34
	}
35
36
37
}
38