Completed
Push — master ( f7bdb9...8d2b6e )
by Andrii
10:42
created

ResourceSearch   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A searchAttributes() 0 12 1
1
<?php
2
3
namespace hipanel\modules\finance\models\proxy;
4
5
use hipanel\base\SearchModelTrait;
6
use hipanel\helpers\ArrayHelper;
7
8
class ResourceSearch extends Resource
9
{
10
    use SearchModelTrait {
11
        searchAttributes as defaultSearchAttributes;
12
    }
13
14
    public function searchAttributes(): array
15
    {
16
        return ArrayHelper::merge(
17
            $this->defaultSearchAttributes(),
18
            [
19
                'object',
20
                'groupby',
21
                'time_from',
22
                'time_till',
23
            ]
24
        );
25
    }
26
}