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

Submit   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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