mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Appended newlines to every PHP document that did not have a newline as the last character in the file.
22 lines
349 B
PHP
22 lines
349 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\validators\CaptchaValidator'),
|
|
);
|
|
}
|
|
}
|