TalkModeConstant.php 405 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Constant;
  4. /**
  5. * 聊天对话模式
  6. *
  7. * @package App\Constants
  8. */
  9. class TalkModeConstant
  10. {
  11. /**
  12. * 私信
  13. */
  14. const PRIVATE_CHAT = 1;
  15. /**
  16. * 群聊
  17. */
  18. const GROUP_CHAT = 2;
  19. public static function getTypes(): array
  20. {
  21. return [
  22. self::PRIVATE_CHAT,
  23. self::GROUP_CHAT
  24. ];
  25. }
  26. }