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

MailGridLegend::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
rs 9.4285
cc 1
eloc 7
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 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