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

InputSlider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 34
c 2
b 1
f 0
dl 0
loc 49
ccs 0
cts 20
cp 0
rs 10
wmc 2

2 Methods

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