Passed
Pull Request — master (#721)
by Florian
14:00 queued 04:02
created

Select::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class Select extends Component
8
{
9
    public $id;
10
    public $name;
11
    public $label;
12
    public $topclass;
13
    public $inputclass;
14
    public $disabled;
15
    public $required;
16
    public $multiple;
17
18
    public function __construct(
19
            $id, $name = null,
20
            $label = 'Input Label',
21
            $topclass = null, $inputclass = null,
22
            $disabled = false, $required = false, $multiple = false
23
        ) {
24
        $this->id = $id;
25
        $this->name = $name;
26
        $this->label = $label;
27
        $this->topclass = $topclass;
28
        $this->inputclass = $inputclass;
29
        $this->required = $required;
30
        $this->disabled = $disabled;
31
        $this->multiple = $multiple;
32
    }
33
34
    public function render()
35
    {
36
        return view('adminlte::select');
37
    }
38
}
39