Passed
Pull Request — master (#721)
by Florian
03:05
created

InputSlider::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

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 2
cts 2
cp 1
crap 1
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 1
    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 1
        $this->id = $id;
36 1
        $this->name = $name;
37 1
        $this->label = $label;
38 1
        $this->topclass = $topclass;
39 1
        $this->inputclass = $inputclass;
40 1
        $this->required = $required;
41 1
        $this->disabled = $disabled;
42 1
        $this->value = $value;
43 1
        $this->min = $min;
44 1
        $this->max = $max;
45 1
        $this->step = $step;
46 1
        $this->vertical = $vertical;
47 1
        $this->tick = $tick;
48 1
        $this->ticks = $ticks;
49 1
        $this->tickLabels = $tickLabels;
50 1
        $this->color = $color;
51 1
    }
52
53 1
    public function render()
54
    {
55 1
        return view('adminlte::components.input-slider');
56
    }
57
}
58