mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 14:50:56 +08:00
23 lines
465 B
PHP
23 lines
465 B
PHP
<?php
|
|
/**
|
|
* @link https://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license https://www.yiiframework.com/license/
|
|
*/
|
|
|
|
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];
|
|
}
|
|
}
|