Dmitry Naumenko
9 years ago
6 changed files with 53 additions and 2 deletions
@ -0,0 +1,17 @@
|
||||
<?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]; |
||||
} |
||||
} |
Loading…
Reference in new issue