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

ProfileFlat   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 11
c 2
b 1
f 0
dl 0
loc 23
ccs 0
cts 10
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A background() 0 3 1
A __construct() 0 6 1
A render() 0 3 1
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class ProfileFlat extends Component
8
{
9
    public $bg;
10
    public $img;
11
    public $name;
12
    public $desc;
13
14
    public function __construct($bg = 'info', $img, $name, $desc)
15
    {
16
        $this->bg = $bg;
17
        $this->img = $img;
18
        $this->name = $name;
19
        $this->desc = $desc;
20
    }
21
22
    public function background()
23
    {
24
        return 'bg-'.$this->bg;
25
    }
26
27
    public function render()
28
    {
29
        return view('adminlte::components.profile-flat');
30
    }
31
}
32