Files
yii2/tests/framework/web/stubs/ModelStub.php
2022-08-03 12:32:18 +03:00

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];
}
}