Total Complexity | 4 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class CreditSearch extends Credit implements ResourceSearch |
||
10 | { |
||
11 | /** |
||
12 | * @inhertidoc |
||
13 | */ |
||
14 | public function attributes() |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @inhertidoc |
||
21 | */ |
||
22 | protected $autogenerateInitialWorklog = false; |
||
23 | |||
24 | /** |
||
25 | * @inhertidoc |
||
26 | */ |
||
27 | public function rules() |
||
28 | { |
||
29 | return [ |
||
30 | [['created_by'], 'integer'], |
||
31 | [ |
||
32 | ['activeStage'], |
||
33 | 'each', |
||
34 | 'allowMessageFromRule' => true, |
||
35 | 'rule' => [ |
||
36 | 'integer', |
||
37 | 'message' => '{value} is not an integer', |
||
38 | ], |
||
39 | ], |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inhertidoc |
||
45 | */ |
||
46 | public function search( |
||
62 | ]) |
||
63 | ]); |
||
66 |