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

Input   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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