Completed
Push — master ( 27aa7f...a780c5 )
by Klochok
21:08 queued 08:10
created

CrontabActionsMenu::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 0
cts 1
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hipanel\modules\hosting\menus;
4
5
use hiqdev\menumanager\Menu;
6
use Yii;
7
8
class CrontabActionsMenu extends Menu
9
{
10
    public $model;
11
12
    public function items()
13
    {
14
        return [
15
            'view' => [
16
                'label' => Yii::t('hipanel', 'View'),
17
                'icon' => 'fa-info',
18
                'url' => ['@crontab/view', 'id' => $this->model->id],
19
            ],
20
        ];
21
    }
22
}
23