guild/frontend/modules/api/models/profile/forms/ProfileChangePersonalDataForm.php

31 lines
507 B
PHP

<?php
namespace frontend\modules\api\models\profile\forms;
use yii\base\Model;
class ProfileChangePersonalDataForm extends Model
{
/**
* @var string
*/
public $newUsername;
/**
* @return array
*/
public function rules()
{
return [
[['newUsername'], 'string', 'max' => 255],
[['newUsername'], 'required'],
];
}
/**
* @return string
*/
public function formName(): string
{
return '';
}
}