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

Submit   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 3 1
A __construct() 0 9 1
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
}