Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
input | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
render | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\View\Components\form; |
4 | |
5 | use Illuminate\View\Component; |
6 | |
7 | class input extends Component |
8 | { |
9 | public $type; |
10 | public $name; |
11 | public $class; |
12 | public $value; |
13 | public $label; |
14 | public $attribute; |
15 | |
16 | /** |
17 | * Create a new component instance. |
18 | * |
19 | * @return void |
20 | */ |
21 | public function __construct($type='number', $name, $label, $value ="", $attribute ="", $class ="") |
22 | { |
23 | $this->type = $type; |
24 | $this->name = $name; |
25 | $this->class = $class; |
26 | $this->value = $value; |
27 | $this->label = $label; |
28 | $this->attribute = $attribute; |
29 | } |
30 | |
31 | /** |
32 | * Get the view / contents that represent the component. |
33 | * |
34 | * @return \Illuminate\Contracts\View\View|\Closure|string |
35 | */ |
36 | public function render() |
37 | { |
38 | return view('components.form.input'); |
39 | } |
40 | } |