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.
18 lines
318 B
18 lines
318 B
9 years ago
|
<?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];
|
||
|
}
|
||
|
}
|