hyperf-chat/app/Constant/TalkModeConstant.php

31 lines
405 B
PHP
Raw Normal View History

2021-07-05 21:52:44 +08:00
<?php
2021-09-11 12:41:28 +08:00
declare(strict_types=1);
2021-07-05 21:52:44 +08:00
2022-01-22 20:08:19 +08:00
namespace App\Constant;
2021-07-05 21:52:44 +08:00
2021-07-08 19:30:03 +08:00
/**
* 聊天对话模式
*
* @package App\Constants
*/
2021-07-20 23:12:18 +08:00
class TalkModeConstant
2021-07-05 21:52:44 +08:00
{
2021-07-09 22:57:19 +08:00
/**
* 私信
*/
2021-07-05 21:52:44 +08:00
const PRIVATE_CHAT = 1;
2021-07-09 22:57:19 +08:00
/**
* 群聊
*/
2021-07-05 21:52:44 +08:00
const GROUP_CHAT = 2;
2021-08-20 22:38:46 +08:00
public static function getTypes(): array
2021-07-05 21:52:44 +08:00
{
return [
self::PRIVATE_CHAT,
self::GROUP_CHAT
];
}
}