| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Update extends ProctRecordAction |
||
| 14 | { |
||
| 15 | use LoadFileTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | protected string $errorMessage = 'Update failed for unknown reasons.'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string the scenario to be assigned to the model before it is |
||
| 24 | * validated and updated. |
||
| 25 | */ |
||
| 26 | public string $scenario = Model::SCENARIO_DEFAULT; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritdoc |
||
| 30 | */ |
||
| 31 | protected function proct(ARContract $model, array $params): bool |
||
| 42 |