guild/frontend/modules/api/models/questionnaire/forms/QuestionnaireUuidForm.php

33 lines
644 B
PHP
Raw Normal View History

2023-11-16 11:55:49 +03:00
<?php
namespace frontend\modules\api\models\questionnaire\forms;
use frontend\modules\api\models\questionnaire\UserQuestionnaire;
use yii\base\Model;
class QuestionnaireUuidForm extends Model
{
public $uuid;
/**
* @return array
*/
public function rules()
{
return [
[['uuid'], 'string'],
[['uuid'], 'required'],
[['uuid'], 'exist', 'skipOnError' => false, 'targetClass' => UserQuestionnaire::class, 'targetAttribute' => ['uuid' => 'uuid']],
];
}
/**
* @return string
*/
public function formName(): string
{
return '';
}
}