Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| checkbox | |
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 checkbox extends Component |
| 8 | { |
| 9 | public $class; |
| 10 | public $name; |
| 11 | public $label; |
| 12 | public $tag; |
| 13 | public $value; |
| 14 | public $attribute; |
| 15 | |
| 16 | /** |
| 17 | * Create a new component instance. |
| 18 | * |
| 19 | * @return void |
| 20 | */ |
| 21 | public function __construct($class,$name,$label,$tag,$value,$attribute) |
| 22 | { |
| 23 | $this->class = $class; |
| 24 | $this->name = $name; |
| 25 | $this->label = $label; |
| 26 | $this->tag = $tag; |
| 27 | $this->value = $value; |
| 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.checkbox'); |
| 39 | } |
| 40 | } |