Completed
Push — master ( 92156c...43c17e )
by Andrii
25:32 queued 10:20
created

PrefixSearch   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A searchAttributes() 0 7 1
1
<?php
2
3
namespace hipanel\modules\hosting\models;
4
5
use hipanel\base\SearchModelTrait;
6
use hipanel\helpers\ArrayHelper;
7
8
class PrefixSearch extends Prefix
9
{
10
    use SearchModelTrait {
11
        searchAttributes as defaultSearchAttributes;
12
    }
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function searchAttributes()
18
    {
19
        return ArrayHelper::merge($this->defaultSearchAttributes(), [
20
            'aggregate',
21
            'prefix',
22
        ]);
23
    }
24
}
25