Passed
Pull Request — master (#721)
by Florian
09:26
created

InputColor::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
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 InputColor extends Component
8
{
9
    public $id, $name, $label, $placeholder;
10
    public $topclass, $inputclass;
11
    public $value, $disabled, $required;
12
13
    public function __construct(
14
            $id, $name = null,
15
            $label = 'Input Label', $placeholder = null,
16
            $topclass = null, $inputclass = null,
17
            $value = null, $disabled = false, $required = false
18
        )
19
    {
20
        $this->id = $id;
21
        $this->name = $name;
22
        $this->label = $label;
23
        $this->placeholder = $placeholder;
24
        $this->topclass = $topclass;
25
        $this->inputclass = $inputclass;
26
        $this->value = $value;
27
        $this->required = $required;
28
        $this->disabled = $disabled;
29
    }
30
31
    public function render()
32
    {
33
        return view('adminlte::input-color');
34
    }
35
}