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-09-23 17:03:42 +03:00
|
|
|
'key' => 'required|min-str-len:1|max-str-len:50',
|
|
|
|
'value' => '',
|
|
|
|
'label' => '',
|
|
|
|
'status' => ''
|
2024-09-23 15:33:48 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|