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

/**
 * Singer
 */
class Singer extends Model
{
11 12
    public $fistName;
    public $lastName;
Alexander Makarov committed
13

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