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

Submit::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 9
rs 10
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class Submit extends Component
8
{
9
    public $type, $label, $icon;
10
    public $topclass, $inputclass;
11
12
    public function __construct(
13
        $type = 'primary', $label = 'Submit', $icon = 'fas fa-save',
14
        $topclass = 'text-center', $inputclass = null)
15
    {
16
        $this->type = $type;
17
        $this->icon = $icon;
18
        $this->topclass = $topclass;
19
        $this->inputclass = $inputclass;
20
        $this->label = $label;
21
    }
22
23
    public function render()
24
    {
25
        return view('adminlte::submit');
26
    }
27
}