Passed
Pull Request — master (#721)
by Florian
02:40
created

InputSlider::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

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
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class InputSlider extends Component
8
{
9
    public $id;
10
    public $name;
11
    public $label;
12
    public $topclass;
13
    public $inputclass;
14
    public $value;
15
    public $disabled;
16
    public $required;
17
    public $min;
18
    public $max;
19
    public $step;
20
    public $vertical;
21
    public $tick;
22
    public $ticks;
23
    public $tickLabels;
24
    public $color;
25
26
    public function __construct(
27
            $id, $name = null,
28
            $label = 'Input Label',
29
            $topclass = null, $inputclass = null,
30
            $value = null, $disabled = false, $required = false,
31
            $min = 0, $max = 100, $step = 1, $vertical = false,
32
            $tick = false, $ticks = null, $tickLabels = null,
33
            $color = 'blue'
34
        ) {
35
        $this->id = $id;
36
        $this->name = $name;
37
        $this->label = $label;
38
        $this->topclass = $topclass;
39
        $this->inputclass = $inputclass;
40
        $this->required = $required;
41
        $this->disabled = $disabled;
42
        $this->value = $value;
43
        $this->min = $min;
44
        $this->max = $max;
45
        $this->step = $step;
46
        $this->vertical = $vertical;
47
        $this->tick = $tick;
48
        $this->ticks = $ticks;
49
        $this->tickLabels = $tickLabels;
50
        $this->color = $color;
51
    }
52
53
    public function render()
54
    {
55
        return view('adminlte::components.input-slider');
56
    }
57
}
58