You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
326 B

<?php
namespace common\modules\blog\forms;
use yii\base\Model;
class BlogCommentForm extends Model
{
public $parentId;
public $text;
public function rules(): array
{
return [
[['text'], 'required'],
['text', 'string'],
['parentId', 'integer'],
];
}
}