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

InputTag   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 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, $name, $label, $max;
10
    public $topclass, $inputclass;
11
    public $disabled, $required;
12
13
    public function __construct(
14
            $id = null, $name = null,
15
            $label = 'Input Label',
16
            $topclass = null, $inputclass = null,
17
            $disabled = false, $required = false, $max = 10
18
        )
19
    {
20
        $this->id = $id;
21
        $this->name = $name;
22
        $this->label = $label;
23
        $this->topclass = $topclass;
24
        $this->inputclass = $inputclass;
25
        $this->required = $required;
26
        $this->disabled = $disabled;
27
        $this->max = $max;
28
    }
29
30
    public function render()
31
    {
32
        return view('adminlte::input-tag');
33
    }
34
}