46 lines
766 B
PHP
46 lines
766 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace common\models;
|
||
|
|
|
||
|
|
use Yii;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is the model class for table "cyto_type_of_specimen".
|
||
|
|
*
|
||
|
|
* @property int $id
|
||
|
|
* @property string $code
|
||
|
|
* @property string $name
|
||
|
|
* @property int|null $status
|
||
|
|
*/
|
||
|
|
class CytoTypeOfSpecimen extends \yii\db\ActiveRecord
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* {@inheritdoc}
|
||
|
|
*/
|
||
|
|
public static function tableName()
|
||
|
|
{
|
||
|
|
return 'cyto_type_of_specimen';
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* {@inheritdoc}
|
||
|
|
*/
|
||
|
|
public function rules()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
[['name'], 'required'],
|
||
|
|
[['name'], 'string', 'max' => 500],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* {@inheritdoc}
|
||
|
|
*/
|
||
|
|
public function attributeLabels()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'id' => 'ID',
|
||
|
|
'name' => 'Name',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|