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

InputTag   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 18
c 2
b 1
f 0
dl 0
loc 30
ccs 12
cts 12
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
A render() 0 3 1
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class InputTag extends Component
8
{
9
    public $id;
10
    public $name;
11
    public $label;
12
    public $max;
13
    public $topclass;
14
    public $inputclass;
15
    public $disabled;
16
    public $required;
17
18 1
    public function __construct(
19
            $id = null, $name = null,
20
            $label = 'Input Label',
21
            $topclass = null, $inputclass = null,
22
            $disabled = false, $required = false, $max = 10
23
        ) {
24 1
        $this->id = $id;
25 1
        $this->name = $name;
26 1
        $this->label = $label;
27 1
        $this->topclass = $topclass;
28 1
        $this->inputclass = $inputclass;
29 1
        $this->required = $required;
30 1
        $this->disabled = $disabled;
31 1
        $this->max = $max;
32 1
    }
33
34 1
    public function render()
35
    {
36 1
        return view('adminlte::components.input-tag');
37
    }
38
}
39