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

TemplateSearch::attributeLabels()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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