for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the mucts.com.
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
* @version 1.0
* @author herry<[email protected]>
* @copyright © 2020 MuCTS.com All Rights Reserved.
*/
namespace MuCTS\Sobot\Agents\SaveGroups\Response;
use MuCTS\Sobot\Contracts\Response;
* Class Item
* @property-read string $groupid 技能组ID
* @property-read string $group_name 技能组名称
* @property-read int $group_type 技能组类型,0工单客服组,1在线客服组,2电话客服组,3 电销组
* @property-read string $group_type_cn 技能组类型
* @package MuCTS\Sobot\Agents\SaveGroups\Response
class Item extends Response
{
* 技能组类型
* @return string
public function getGroupTypeCn()
$groupType = intval($this->group_type);
switch ($groupType) {
case 0:
return '工单坐席组';
case 1:
return '在线坐席组';
case 2:
return '电话坐席组';
case 3:
return '电销组';
default:
return '未知';
}