| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace fast;
- /**
- * 资产账变类型类
- */
- class RechargeOrderType
- {
- /**
- * 服务器算力
- */
- const RentalPower = 1;
- /**
- * 租赁服务器
- */
- const RentalServer = 2;
- private static array $actions = [
- self::RentalPower => '服务器算力',
- self::RentalServer => '租赁服务器',
- ];
- public static function getText(int $value): string
- {
- if (array_key_exists($value, self::$actions)) {
- return self::$actions[$value];
- } else {
- return Common::getUnknownText();
- }
- }
- }
|