Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 89.47% |
Changes | 0 |
1 | <?php |
||
12 | class Create extends Action |
||
13 | { |
||
14 | 1 | use LoadFileTrait; |
|
15 | |||
16 | /** |
||
17 | * @var string the scenario to be assigned to the new model before it is validated and saved. |
||
18 | */ |
||
19 | public $scenario = Model::SCENARIO_DEFAULT; |
||
20 | |||
21 | /** |
||
22 | * Creates a new model. |
||
23 | * @return \yii\db\ActiveRecordInterface the model newly created |
||
24 | * @throws ServerErrorHttpException if there is any error when creating the model |
||
25 | */ |
||
26 | 8 | public function run() |
|
53 |