| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace fast;
- /**
- * 资产账变类型类
- */
- class RechargeStatus
- {
- /**
- * 待验证
- */
- const StatusUnAuth = 0;
- /**
- * 验证成功
- */
- const StatusAuthSuccess = 1;
- /**
- * 验证失败
- */
- const StatusAuthFail = 2;
- private static array $actions = [
- self::StatusUnAuth => '待验证',
- self::StatusAuthSuccess => '验证成功',
- self::StatusAuthFail => '验证失败',
- ];
- public static function getText(int $value): string
- {
- if (array_key_exists($value, self::$actions)) {
- return self::$actions[$value];
- } else {
- return Common::getUnknownText();
- }
- }
- }
|