Singer.php 347 Bytes
Newer Older
Alexander Makarov committed
1 2
<?php
namespace yiiunit\data\base;
Alexander Makarov committed
3

Alexander Makarov committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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'),
Qiang Xue committed
19
			array('underscore_style', 'yii\captcha\CaptchaValidator'),
Alexander Makarov committed
20 21
		);
	}
Zander Baldwin committed
22
}