RefundReasonEnum.php 790 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace common\enums;
  3. use common\enums\BaseEnum;
  4. /**
  5. *
  6. * Class RefundReasonEnum
  7. * @package addons\TinyShop\common\enums
  8. * @author qimall
  9. */
  10. class RefundReasonEnum extends BaseEnum
  11. {
  12. const NEGOTIATED = 'negotiated';
  13. const BUY_THE_WRONG = 'buy_the_wrong';
  14. const QUALITY_PROBLEM = 'quality_problem';
  15. const NOT_RECEIVED = 'not_received';
  16. const OTHER = 'other';
  17. /**
  18. * @return array
  19. */
  20. public static function getMap(): array
  21. {
  22. return [
  23. self::NEGOTIATED => '买/卖双方协商一致',
  24. self::BUY_THE_WRONG => '买错/买多/不想要了',
  25. self::QUALITY_PROBLEM => '商品质量问题',
  26. self::NOT_RECEIVED => '未收到货物',
  27. self::OTHER => '其他',
  28. ];
  29. }
  30. }