| Current Path : /var/www/html/ebookingdbkl/common/models/ |
| Current File : /var/www/html/ebookingdbkl/common/models/PaymentIntercept.php |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "payment_intercept".
*
* @property int $intercept_id
* @property int|null $user_fk
* @property int|null $transaction_id
* @property string|null $checksum
* @property float|null $amount
* @property string|null $method
* @property int|null $context_id
* @property string|null $type
* @property string|null $created_at
*/
class PaymentIntercept extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'payment_intercept';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['user_fk', 'transaction_id', 'context_id'], 'integer'],
[['amount'], 'number'],
[['type'], 'string'],
[['created_at', 'status', 'retry', 'return_status'], 'safe'],
[['checksum'], 'string', 'max' => 120],
[['method'], 'string', 'max' => 50],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'intercept_id' => Yii::t('app', 'Intercept ID'),
'user_fk' => Yii::t('app', 'User Fk'),
'transaction_id' => Yii::t('app', 'Transaction ID'),
'checksum' => Yii::t('app', 'Checksum'),
'amount' => Yii::t('app', 'Amount'),
'method' => Yii::t('app', 'Method'),
'context_id' => Yii::t('app', 'Context ID'),
'type' => Yii::t('app', 'Type'),
'created_at' => Yii::t('app', 'Created At'),
];
}
}