Completed
Push — master ( 635289...c7fa2e )
by Alexey
03:05
created

RbacMenuAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 6 1
1
<?php
2
3
namespace modules\rbac\widgets;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class RbacMenuAsset
9
 * @package modules\rbac\widgets
10
 */
11
class RbacMenuAsset extends AssetBundle
12
{
13
    /**
14
     * @var string
15
     */
16
    public $sourcePath;
17
18
    /**
19
     * @var array
20
     */
21
    public $css = [];
22
23
    /**
24
     * @inheritdoc
25
     */
26
    public function init()
27
    {
28
        parent::init();
29
        $this->sourcePath = __DIR__ . '/src';
30
        $this->css = [
31
            'css/style.css',
32
        ];
33
    }
34
35
    public $publishOptions = [
36
        'forceCopy' => false,
37
    ];
38
39
    /**
40
     * @var array
41
     */
42
    public $depends = [
43
        'yii\bootstrap\BootstrapAsset',
44
    ];
45
}
46