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

39 lines
634 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;
use yii\base\BaseObject;
/**
* @inheritdoc
*/
class Post extends BaseObject
{
/**
* @var int
*/
public $id;
/**
* @var string
*/
public $title;
/**
* @param int $id
* @param string $title
* @param array $config
*/
public function __construct($id, $title, $config = [])
{
$this->id = $id;
$this->title = $title;
parent::__construct($config);
}
}