Passed
Pull Request — master (#721)
by Florian
14:00 queued 04:02
created

InputFile   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

2 Methods

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