Yii2 framework backup
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.
 
 
 
 
 

17 lines
318 B

<?php
namespace yiiunit\framework\web\stubs;
use yii\base\Model;
class ModelStub extends Model
{
public $id;
public $title;
public $hidden;
public function toArray(array $fields = [], array $expand = [], $recursive = true)
{
return ['id' => $this->id, 'title' => $this->title];
}
}