| 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 | protected $autogenerateInitialWorklog = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inhertidoc |
||
| 18 | */ |
||
| 19 | public function attributes() |
||
| 20 | { |
||
| 21 | return array_merge(parent::attributes(), ['activeStage']); |
||
| 22 | } |
||
| 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 | ]); |
||
| 64 | } |
||
| 66 |