card action

This commit is contained in:
2025-01-26 14:42:47 +03:00
parent 08cdf44b67
commit 824130df26
27 changed files with 430 additions and 53 deletions

View File

@ -0,0 +1,23 @@
<?php
namespace app\modules\tgbot\models\forms;
use kernel\FormModel;
/**
* @property string $type
* @property integer $card_id
*/
class CardActionStep2Form extends FormModel
{
public function rules(): array
{
return [
'type' => 'required|min-str-len:3',
'card_id' => 'required|alpha-numeric',
'amount' => 'alpha-numeric',
];
}
}