Completed
Push — master ( f04bdf...03085f )
by Andrii
05:00
created

ConfigRepresentations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 11
dl 0
loc 14
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fillRepresentations() 0 12 1
1
<?php
2
3
namespace hipanel\modules\server\grid;
4
5
use Yii;
6
use hiqdev\higrid\representations\RepresentationCollection;
7
8
class ConfigRepresentations extends RepresentationCollection
9
{
10
    protected function fillRepresentations()
11
    {
12
        $this->representations = array_filter([
13
            'common' => [
14
                'label' => Yii::t('hipanel', 'common'),
15
                'columns' => [
16
                    'checkbox',
17
                    'actions',
18
                    'name',
19
                    'client',
20
                    'type',
21
                    'state',
22
                ],
23
            ],
24
        ]);
25
    }
26
}
27