Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class EDeleteAction extends DeleteAction |
||
24 | { |
||
25 | /** |
||
26 | * @var ActiveRecord|null |
||
27 | */ |
||
28 | private ?ActiveRecord $_model; |
||
29 | |||
30 | /** |
||
31 | * Get deleted model |
||
32 | * |
||
33 | * @return ActiveRecord|null |
||
34 | */ |
||
35 | public function getModel(): ?ActiveRecord |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Deletes a model. |
||
42 | * @param mixed $id id of the model to be deleted. |
||
43 | * |
||
44 | * @throws NotFoundHttpException on failure. |
||
45 | * @throws ServerErrorHttpException |
||
46 | */ |
||
47 | public function run($id) |
||
64 |