Completed
Push — master ( 055fd1...11841d )
by Klochok
24:15 queued 09:17
created

IpGridLegend::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 22
rs 9.2
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\hosting\grid;
4
5
use hipanel\widgets\gridLegend\BaseGridLegend;
6
use hipanel\widgets\gridLegend\GridLegendInterface;
7
use Yii;
8
9
class IpGridLegend extends BaseGridLegend implements GridLegendInterface
10
{
11
    public function items()
12
    {
13
        return [
14
            [
15
                'label' => Yii::t('hipanel:hosting', 'Shared'),
16
            ],
17
            [
18
                'label' => Yii::t('hipanel:hosting', 'Free'),
19
                'color' => '#AAFFAA',
20
            ],
21
            [
22
                'label' => Yii::t('hipanel:hosting', 'Dedicated'),
23
                'color' => '#CCCCFF',
24
            ],
25
            [
26
                'label' => Yii::t('hipanel:hosting', 'System'),
27
            ],
28
            [
29
                'label' => Yii::t('hipanel:hosting', 'Blocked'),
30
            ],
31
        ];
32
    }
33
}
34