MainDetails::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 13
rs 9.8333
cc 1
nc 1
nop 0
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