Completed
Push — master ( 5bd098...f52782 )
by Klochok
14:11
created

MailGridLegend   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
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 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A items() 0 16 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 MailGridLegend extends BaseGridLegend implements GridLegendInterface
10
{
11
    public function items()
12
    {
13
        return [
14
            [
15
                'label' => Yii::t('hipanel:hosting', 'Mail box'),
16
            ],
17
            [
18
                'label' => Yii::t('hipanel:hosting', 'Mail alias'),
19
                'color' => '#CCCCFF',
20
            ],
21
            [
22
                'label' => Yii::t('hipanel:hosting', 'Mail box with aliases'),
23
                'color' => '#FFFF99',
24
            ],
25
        ];
26
    }
27
}
28