Completed
Push — master ( 642e84...d05b91 )
by Dmitry
13:24
created

SaleSearch::searchAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\finance\models;
4
5
use hipanel\base\SearchModelTrait;
6
use Yii;
7
use yii\helpers\ArrayHelper;
8
9
class SaleSearch extends Sale
10
{
11
    use SearchModelTrait {
12
        searchAttributes as defaultSearchAttributes;
13
    }
14
15
    public function searchAttributes()
16
    {
17
        return ArrayHelper::merge($this->defaultSearchAttributes(), [
18
            'object_inilike',
19
        ]);
20
    }
21
22
    public function attributeLabels()
23
    {
24
        return array_merge(parent::attributeLabels(), [
25
            'object_inilike' => Yii::t('hipanel:stock', 'Object'),
26
        ]);
27
    }
28
}
29