Completed
Push — master ( d123db...236d99 )
by Dmitry
09:19
created

TemplateSearch   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A attributeLabels() 0 7 1
1
<?php
2
3
namespace hipanel\modules\ticket\models;
4
5
use hipanel\base\SearchModelTrait;
6
use Yii;
7
8
class TemplateSearch extends Template
9
{
10
    use SearchModelTrait;
11
12
    public function attributeLabels()
13
    {
14
        return $this->mergeAttributeLabels([
15
            'name_like' => Yii::t('hipanel/ticket', 'Name'),
16
            'author_id' => Yii::t('hipanel/ticket', 'Author'),
17
        ]);
18
    }
19
}
20