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

Submit::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
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;
10
    public $label;
11
    public $icon;
12
    public $topclass;
13
    public $inputclass;
14
15
    public function __construct(
16
        $type = 'primary', $label = 'Submit', $icon = 'fas fa-save',
17
        $topclass = 'text-center', $inputclass = null)
18
    {
19
        $this->type = $type;
20
        $this->icon = $icon;
21
        $this->topclass = $topclass;
22
        $this->inputclass = $inputclass;
23
        $this->label = $label;
24
    }
25
26
    public function render()
27
    {
28
        return view('adminlte::components.submit');
29
    }
30
}
31