Total Complexity | 2 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class Input extends Component |
||
8 | { |
||
9 | public $type; |
||
10 | public $id; |
||
11 | public $name; |
||
12 | public $label; |
||
13 | public $placeholder; |
||
14 | public $topclass; |
||
15 | public $inputclass; |
||
16 | public $value; |
||
17 | public $disabled; |
||
18 | public $required; |
||
19 | public $step; |
||
20 | public $max; |
||
21 | public $maxlength; |
||
22 | public $pattern; |
||
23 | |||
24 | 1 | public function __construct( |
|
25 | $type = 'text', $id = null, $name = null, |
||
26 | $label = 'Input Label', $placeholder = null, |
||
27 | $topclass = null, $inputclass = null, |
||
28 | $value = null, $disabled = false, $required = false, |
||
29 | $step = null, $max = null, $maxlength = null, $pattern = null |
||
30 | ) { |
||
31 | 1 | $this->type = $type; |
|
32 | 1 | $this->id = $id; |
|
33 | 1 | $this->name = $name; |
|
34 | 1 | $this->label = $label; |
|
35 | 1 | $this->placeholder = $placeholder; |
|
36 | 1 | $this->topclass = $topclass; |
|
37 | 1 | $this->inputclass = $inputclass; |
|
38 | 1 | $this->value = $value; |
|
39 | 1 | $this->required = $required; |
|
40 | 1 | $this->disabled = $disabled; |
|
41 | 1 | $this->step = $step; |
|
42 | 1 | $this->max = $max; |
|
43 | 1 | $this->maxlength = $maxlength; |
|
44 | 1 | $this->pattern = $pattern; |
|
45 | 1 | } |
|
46 | |||
47 | 1 | public function render() |
|
50 | } |
||
51 | } |
||
52 |