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

ProfileWidgetItem::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class ProfileWidgetItem extends Component
8
{
9
    public $col;
10
    public $title;
11
    public $text;
12
13
    public function __construct($col = '4', $title, $text)
14
    {
15
        $this->col = $col;
16
        $this->title = $title;
17
        $this->text = $text;
18
    }
19
20
    public function render()
21
    {
22
        return view('adminlte::components.profile-widget-item');
23
    }
24
}
25