Completed
Pull Request — master (#142)
by Klochok
10:28
created

ResourceSearch   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
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\models;
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
}