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

ConfigRepresentations::fillRepresentations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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