Completed
Push — master ( 166869...2380e7 )
by Klochok
06:02
created

TicketRepresentations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 19
ccs 0
cts 9
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fillRepresentations() 0 16 1
1
<?php
2
3
namespace hipanel\modules\ticket\grid;
4
5
use hiqdev\higrid\representations\RepresentationCollection;
6
use Yii;
7
8
class TicketRepresentations 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
                    'subject',
18
                    'author_id',
19
                    'responsible_id',
20
                    'recipient_id',
21
                    'answer_count',
22
                ],
23
            ],
24
        ]);
25
    }
26
}
27