CUSTOM
CUSTOM = 10
用户充值订单-充值方式枚举类 Class RechargeType
Create an enum by implementing this class and adding class constants.
equals(\MyCLabs\Enum\Enum $enum = null) : boolean
Compares one Enum with another.
This method is final, for more information read https://github.com/myclabs/php-enum/issues/4
\MyCLabs\Enum\Enum | $enum |
True if Enums are equal, false if not equal
<?php
namespace app\common\enum\recharge\order;
use app\common\enum\EnumBasics;
/**
* 用户充值订单-充值方式枚举类
* Class RechargeType
* @package app\common\enum\recharge\order
*/
class RechargeType extends EnumBasics
{
// 自定义金额
const CUSTOM = 10;
// 套餐充值
const PLAN = 20;
/**
* 获取订单类型值
* @return array
*/
public static function data()
{
return [
self::CUSTOM => [
'name' => '自定义金额',
'value' => self::CUSTOM,
],
self::PLAN => [
'name' => '套餐充值',
'value' => self::PLAN,
],
];
}
}