Speaker.php 544 Bytes
Newer Older
Alexander Makarov committed
1 2
<?php
namespace yiiunit\data\base;
Alexander Makarov committed
3
use yii\base\Model;
Alexander Makarov committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

/**
 * Speaker
 */
class Speaker extends Model
{
	public $firstName;
	public $lastName;

	public $customLabel;
	public $underscore_style;

	protected $protectedProperty;
	private $_privateProperty;

	public function attributeLabels()
	{
		return array(
			'customLabel' => 'This is the custom label',
		);
	}

	public function rules()
	{
		return array(

		);
	}

	public function scenarios()
	{
		return array(
			'test' => array('firstName', 'lastName', '!underscore_style'),
		);
	}
}