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

InputColor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 27
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
A render() 0 3 1
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
}