1 | <?php |
||
19 | abstract class RecordCreate extends Action |
||
20 | { |
||
21 | use traits\Save; |
||
22 | |||
23 | /** |
||
24 | * @param array $config |
||
25 | * @return ActiveRecord |
||
26 | */ |
||
27 | abstract protected function newRecord(array $config = []): ActiveRecord; |
||
28 | |||
29 | /** |
||
30 | * @return ActiveRecord|null|Response |
||
31 | */ |
||
32 | public function run() |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function statusCodeSuccess(): int |
||
44 | } |
||
45 |