You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							|  |  |  | <?php
 | 
					
						
							|  |  |  | namespace yiiunit\data\base;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use yii\base\Model;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * Speaker
 | 
					
						
							|  |  |  |  */
 | 
					
						
							|  |  |  | class Speaker extends Model
 | 
					
						
							|  |  |  | {
 | 
					
						
							|  |  |  | 	public $firstName;
 | 
					
						
							|  |  |  | 	public $lastName;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public $customLabel;
 | 
					
						
							|  |  |  | 	public $underscore_style;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	protected $protectedProperty;
 | 
					
						
							|  |  |  | 	private $_privateProperty;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public static $formName = 'Speaker';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function formName()
 | 
					
						
							|  |  |  | 	{
 | 
					
						
							|  |  |  | 		return static::$formName;
 | 
					
						
							|  |  |  | 	}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function attributeLabels()
 | 
					
						
							|  |  |  | 	{
 | 
					
						
							|  |  |  | 		return [
 | 
					
						
							|  |  |  | 			'customLabel' => 'This is the custom label',
 | 
					
						
							|  |  |  | 		];
 | 
					
						
							|  |  |  | 	}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function rules()
 | 
					
						
							|  |  |  | 	{
 | 
					
						
							|  |  |  | 		return [];
 | 
					
						
							|  |  |  | 	}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function scenarios()
 | 
					
						
							|  |  |  | 	{
 | 
					
						
							|  |  |  | 		return [
 | 
					
						
							|  |  |  | 			'test' => ['firstName', 'lastName', '!underscore_style'],
 | 
					
						
							|  |  |  | 		];
 | 
					
						
							|  |  |  | 	}
 | 
					
						
							|  |  |  | }
 |