UpdateAgent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestPath() 0 3 1
A getRequestMethod() 0 3 1
1
<?php
2
/**
3
 * This file is part of the mucts.com.
4
 *
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 *
8
 * @version 1.0
9
 * @author herry<[email protected]>
10
 * @copyright © 2020  MuCTS.com All Rights Reserved.
11
 */
12
13
namespace MuCTS\Sobot\Agents;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class UpdateAgent
20
 * 更新坐席信息
21
 *
22
 * 接口说明:
23
 * 更新坐席信息
24
 *
25
 * @property-write string $agent_nick 坐席昵称
26
 * @property-write string $agent_name 坐席真实姓名
27
 * @property-write int $agent_role_type 坐席角色类型
28
 * @property-write string|null $departid 部门ID
29
 * @property-write string|null $group_ids 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔
30
 * @property-write int $max_accept 最大接待上限,0-100正整数
31
 * @property-write string|null $phone_no 坐席手机号
32
 * @property-write int|null $agent_status 坐席状态,0未激活,1启用中,9停用,-1删除 (坐席状态是已启用可以修改为停用,反之停用可以修改为启用,其余状态不可修改)
33
 *
34
 * @method UpdateAgent whereAgentid(string $value) 坐席ID
35
 * @method UpdateAgent agentNick(string $value) 坐席昵称
36
 * @method UpdateAgent agentName(string $value) 坐席真实姓名
37
 * @method UpdateAgent agentRoleType(string $value) 坐席角色类型
38
 * @method UpdateAgent departid(string $value) 部门ID
39
 * @method UpdateAgent groupIds($value) 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔
40
 * @method UpdateAgent maxAccept(string $value) 最大接待上限,0-100正整数
41
 * @method UpdateAgent phoneNo(string $value) 坐席手机号
42
 * @method UpdateAgent agentStatus(int $value) 坐席状态,0未激活,1启用中,9停用,-1删除 (坐席状态是已启用可以修改为停用,反之停用可以修改为启用,其余状态不可修改)
43
 *
44
 * @package MuCTS\Sobot\Agents
45
 */
46
class UpdateAgent extends Sobot
47
{
48
49
    public function getRequestMethod(): string
50
    {
51
        return self::METHOD_POST;
52
    }
53
54
    public function getRequestPath(): string
55
    {
56
        return '/api/basic/5/agent/update_agent';
57
    }
58
}