Completed
Push — master ( 20a6b1...b57415 )
by Klochok
15:20
created

BackupingDetailMenu   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A items() 0 12 1
1
<?php
2
3
namespace hipanel\modules\hosting\menus;
4
5
use Yii;
6
7
class BackupingDetailMenu extends \hipanel\menus\AbstractDetailMenu
8
{
9
    public $model;
10
11
    public function items()
12
    {
13
        return [
14
            [
15
                'label' => Yii::t('hipanel:hosting', 'Update settings'),
16
                'icon' => 'fa-pencil',
17
                'url' => ['@backuping/update', 'id' => $this->model->id],
18
                'encode' => false,
19
                'visible' => Yii::$app->user->can('support'),
20
            ],
21
        ];
22
    }
23
}
24