MicroFrameWork/kernel/modules/option/models/forms/CreateOptionForm.php

26 lines
457 B
PHP
Raw Normal View History

2024-09-23 15:33:48 +03:00
<?php
namespace kernel\modules\option\models\forms;
use kernel\FormModel;
2024-09-23 17:03:42 +03:00
/**
* @property string $key
* @property string $value
* @property string $label
* @property integer $status
*/
2024-09-23 15:33:48 +03:00
class CreateOptionForm extends FormModel
{
public function rules(): array
{
return [
2024-10-17 14:55:00 +03:00
'key' => 'required|min-str-len:3|max-str-len:50',
2024-09-23 17:03:42 +03:00
'value' => '',
'label' => '',
'status' => ''
2024-09-23 15:33:48 +03:00
];
}
}