Total Complexity | 4 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class CategorySearch extends Category |
||
14 | { |
||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public function rules() |
||
19 | { |
||
20 | return [ |
||
21 | [ |
||
22 | ['id'], |
||
23 | 'integer', |
||
24 | ], |
||
25 | [ |
||
26 | [ |
||
27 | 'created_at', |
||
28 | 'updated_at', |
||
29 | ], |
||
30 | 'safe', |
||
31 | ], |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function scenarios() |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Creates data provider instance with search query applied |
||
46 | * |
||
47 | * @param array $params |
||
48 | * |
||
49 | * @return ActiveDataProvider |
||
50 | */ |
||
51 | public function search($params) |
||
77 | } |
||
78 | } |
||
79 |