Completed
Push — master ( add877...db5f0d )
by Andrii
02:57
created

UserMenu   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
1
<?php
2
3
/*
4
 * AdminLte Theme for hiqdev/yii2-thememanager
5
 *
6
 * @link      https://github.com/hiqdev/yii2-theme-adminlte
7
 * @package   yii2-theme-adminlte
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\thememanager\widgets;
13
14
class UserMenu extends \yii\base\Widget
15
{
16
    public $options;
17
18
    public $items;
19
20
    public function run() {
21
        return $this->render('UserMenu', [
22
            'header' => $this->items['header']['label'],
23
            'body' => $this->items['body']['label'],
24
        ]);
25
    }
26
}
27