Singer.php 333 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
use yii\base\Model;

/**
 * Singer
 */
class Singer extends Model
{
	public $fistName;
	public $lastName;

	public function rules()
	{
Alexander Makarov committed
16
		return [
17 18 19
			[['lastName'], 'default', 'value' => 'Lennon'],
			[['lastName'], 'required'],
			[['underscore_style'], 'yii\captcha\CaptchaValidator'],
Alexander Makarov committed
20
		];
Alexander Makarov committed
21
	}
Zander Baldwin committed
22
}