| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ProfileUpdate extends \yii\rest\Action |
||
| 9 | { |
||
| 10 | use LoadFileTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string the scenario to be assigned to the model before it is validated and updated. |
||
| 14 | */ |
||
| 15 | public string $scenario = Model::SCENARIO_DEFAULT; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string[] that defines which columns will be recibe files |
||
| 19 | */ |
||
| 20 | public array $fileAttributes = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function init() |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Updates the information of the logged user. |
||
| 31 | * |
||
| 32 | * @return ActiveRecordInterface |
||
| 33 | * @throws ServerErrorHttpException if there is any error when updating the model |
||
| 34 | */ |
||
| 35 | 1 | public function run(): ActiveRecordInterface |
|
| 53 |