1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-02-12 10:01:52 +00:00
yii2-nomer/models/Plan.php
2020-02-05 06:34:26 +03:00

51 lines
889 B
PHP

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "plans".
*
* @property integer $id
* @property integer $cost
* @property integer $count
* @property string $title
* @property boolean $status
*/
class Plan extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'plans';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['cost', 'count'], 'integer'],
[['status'], 'boolean'],
[['title'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'cost' => 'Cost',
'count' => 'Count',
'title' => 'Title',
'status' => 'Status',
];
}
}