Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | class CreateAction extends Action |
||
13 | { |
||
14 | /** |
||
15 | * @var string the scenario to be assigned to the new model before it is validated and saved. |
||
16 | */ |
||
17 | public $scenario = Model::SCENARIO_DEFAULT; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * Creates a new model. |
||
22 | * @return ActiveRecordInterface the model newly created |
||
23 | * @throws ServerErrorHttpException|InvalidConfigException if there is any error when creating the model |
||
24 | */ |
||
25 | public function run() |
||
49 |