MainDetails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 32
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 13 1
1
<?php
2
/**
3
 * HiPanel core package
4
 *
5
 * @link      https://hipanel.com/
6
 * @package   hipanel-core
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\widgets;
12
13
class MainDetails extends \yii\base\Widget
14
{
15
    public $image;
16
17
    public $icon;
18
19
    public $title;
20
21
    public $titleOptions = [];
22
23
    public $subTitle;
24
25
    public $menu;
26
27
    public $background = false;
28
29
    public $backgroundColor;
30
31
    public function run()
32
    {
33
        return $this->render('MainDetails', [
34
            'title' => $this->title,
35
            'titleOptions' => $this->titleOptions,
36
            'icon' => $this->icon,
37
            'subTitle' => $this->subTitle,
38
            'menu' => $this->menu,
39
            'image' => $this->image,
40
            'background' => $this->background,
41
            'backgroundColor' => $this->backgroundColor,
42
        ]);
43
    }
44
}
45