prolab-api/common/models/LISLabCodeMapping.php

72 lines
1.3 KiB
PHP
Raw Normal View History

2026-03-05 08:06:01 +00:00
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "LISLabCodeMapping".
*
* @property string $TestID
* @property string|null $TestCode
* @property string $TestName
* @property string $PROLAB_LabID
* @property string $LISName
*/
class LISLabCodeMapping extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'LISLabCodeMapping';
}
/**
* {@inheritdoc}
*/
public static function primaryKey()
{
return ['TestID', 'PROLAB_LabID'];
}
/**
* @return \yii\db\Connection the database connection used by this AR class.
*/
public static function getDb()
{
return Yii::$app->get('prolab');
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['TestCode'], 'default', 'value' => null],
[['TestID', 'TestName', 'PROLAB_LabID', 'LISName'], 'required'],
[['TestName'], 'string'],
[['TestID', 'LISName'], 'string', 'max' => 20],
[['TestCode', 'PROLAB_LabID'], 'string', 'max' => 50],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'TestID' => 'Test ID',
'TestCode' => 'Test Code',
'TestName' => 'Test Name',
'PROLAB_LabID' => 'Prolab Lab ID',
'LISName' => 'Lis Name',
];
}
}