Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class UpdateAction extends Action |
||
14 | { |
||
15 | /** |
||
16 | * @var string the scenario to be assigned to the model before it is validated and updated. |
||
17 | */ |
||
18 | public $scenario = Model::SCENARIO_DEFAULT; |
||
19 | |||
20 | /** |
||
21 | * Updates an existing resource. |
||
22 | * @param string $id the primary key of the model. |
||
23 | * @return \yii\db\ActiveRecordInterface the model being updated |
||
24 | * @throws ServerErrorHttpException if there is any error when updating the model |
||
25 | */ |
||
26 | public function run($id) |
||
45 | } |
||
46 | } |