Files
yii2/tests/unit/data/base/Singer.php
2013-08-03 07:20:39 -04:00

22 lines
346 B
PHP

<?php
namespace yiiunit\data\base;
use yii\base\Model;
/**
* Singer
*/
class Singer extends Model
{
public $fistName;
public $lastName;
public function rules()
{
return array(
array('lastName', 'default', 'value' => 'Lennon'),
array('lastName', 'required'),
array('underscore_style', 'yii\captcha\CaptchaValidator'),
);
}
}