RechargeStatus.php 709 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace fast;
  3. /**
  4. * 资产账变类型类
  5. */
  6. class RechargeStatus
  7. {
  8. /**
  9. * 待验证
  10. */
  11. const StatusUnAuth = 0;
  12. /**
  13. * 验证成功
  14. */
  15. const StatusAuthSuccess = 1;
  16. /**
  17. * 验证失败
  18. */
  19. const StatusAuthFail = 2;
  20. private static array $actions = [
  21. self::StatusUnAuth => '待验证',
  22. self::StatusAuthSuccess => '验证成功',
  23. self::StatusAuthFail => '验证失败',
  24. ];
  25. public static function getText(int $value): string
  26. {
  27. if (array_key_exists($value, self::$actions)) {
  28. return self::$actions[$value];
  29. } else {
  30. return Common::getUnknownText();
  31. }
  32. }
  33. }