Total Complexity | 3 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | class CommentSearch extends CommentModel |
||
14 | { |
||
15 | /** |
||
16 | * @var int the default page size |
||
17 | */ |
||
18 | public $pageSize = 10; |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function rules() |
||
24 | { |
||
25 | return [ |
||
26 | [['id', 'createdBy', 'status'], 'integer'], |
||
27 | [['content', 'relatedTo'], 'safe'], |
||
28 | ]; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Creates data provider instance with search query applied |
||
33 | * |
||
34 | * @param $params |
||
35 | * |
||
36 | * @return ActiveDataProvider |
||
37 | */ |
||
38 | public function search(array $params) |
||
69 | } |
||
70 | } |
||
71 |