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

IpGridLegend   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A items() 0 22 1
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