mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 23:04:54 +08:00
29 lines
483 B
PHP
29 lines
483 B
PHP
<?php
|
|
/**
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
namespace yiiunit\data\base;
|
|
|
|
use yii\base\Model;
|
|
|
|
/**
|
|
* Model to test different rules combinations in ModelTest.
|
|
*/
|
|
class RulesModel extends Model
|
|
{
|
|
public $account_id;
|
|
public $user_id;
|
|
public $email;
|
|
public $name;
|
|
|
|
public $rules = [];
|
|
|
|
public function rules()
|
|
{
|
|
return $this->rules;
|
|
}
|
|
}
|