Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class RuleController extends ActiveController |
||
17 | { |
||
18 | use ServiceTrait; |
||
19 | |||
20 | public $modelClass = Rule::class; |
||
21 | public $defaultOrder = ['sort' => SORT_ASC, 'id' => SORT_DESC]; |
||
22 | public $partialMatchAttributes = ['name']; |
||
23 | |||
24 | /** |
||
25 | * @param int $id |
||
26 | * @return Rule |
||
27 | * @throws Exception |
||
28 | * @throws NotFoundHttpException |
||
29 | */ |
||
30 | public function actionCopy(int $id): Rule |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param int $id |
||
37 | * @return Rule |
||
38 | * @throws Exception |
||
39 | * @throws InvalidArgumentException |
||
40 | * @throws NotFoundHttpException |
||
41 | */ |
||
42 | public function actionUpdateStatus(int $id): Rule |
||
52 |