StatisticRepresentations::fillRepresentations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 0
cts 9
cp 0
rs 9.7
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hipanel\modules\ticket\grid;
4
5
use hiqdev\higrid\representations\RepresentationCollection;
6
use Yii;
7
8
class StatisticRepresentations extends RepresentationCollection
9
{
10
    protected function fillRepresentations()
11
    {
12
        $this->representations = array_filter([
13
            'consumers' => [
14
                'label' => Yii::t('hipanel:ticket', 'Consumers'),
15
                'columns' => [
16
                    'client_id', 'spent', 'tickets',
17
                ],
18
            ],
19
            'performers' => [
20
                 'label' => Yii::t('hipanel:ticket', 'Performers'),
21
                 'columns' => [
22
                    'client_id', 'spent', 'tickets',
23
                 ],
24
            ],
25
        ]);
26
    }
27
}
28