46 lines
707 B
PHP
46 lines
707 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace common\models;
|
||
|
|
|
||
|
|
use Yii;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is the model class for table "cyto_suggestion".
|
||
|
|
*
|
||
|
|
* @property integer $id
|
||
|
|
* @property string $name
|
||
|
|
* @property string $type
|
||
|
|
*/
|
||
|
|
class CytoSuggestion extends \yii\db\ActiveRecord
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @inheritdoc
|
||
|
|
*/
|
||
|
|
public static function tableName()
|
||
|
|
{
|
||
|
|
return 'cyto_suggestion';
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @inheritdoc
|
||
|
|
*/
|
||
|
|
public function rules()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
[['name', 'type'], 'string'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @inheritdoc
|
||
|
|
*/
|
||
|
|
public function attributeLabels()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'id' => 'ID',
|
||
|
|
'name' => 'Name',
|
||
|
|
'type' => 'Type',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|