Request   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

1 Method

Rating   Name   Duplication   Size   Complexity  
A groupIds() 0 4 2
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\UpdateAgent;
14
15
/**
16
 * Class Request
17
 * @property-write string $agent_nick 坐席昵称
18
 * @property-write string $agent_name 坐席真实姓名
19
 * @property-write int $agent_role_type 坐席角色类型
20
 * @property-write string|null $departid 部门ID
21
 * @property-write string|null $group_ids 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔
22
 * @property-write int $max_accept 最大接待上限,0-100正整数
23
 * @property-write string|null $phone_no 坐席手机号
24
 * @property-write int|null $agent_status 坐席状态,0未激活,1启用中,9停用,-1删除 (坐席状态是已启用可以修改为停用,反之停用可以修改为启用,其余状态不可修改)
25
 *
26
 * @method Request whereAgentid(string $value) 坐席ID
27
 * @method Request agentNick(string $value) 坐席昵称
28
 * @method Request agentName(string $value) 坐席真实姓名
29
 * @method Request agentRoleType(string $value) 坐席角色类型
30
 * @method Request departid(string $value) 部门ID
31
 * @method Request maxAccept(string $value) 最大接待上限,0-100正整数
32
 * @method Request phoneNo(string $value) 坐席手机号
33
 * @method Request agentStatus(int $value) 坐席状态,0未激活,1启用中,9停用,-1删除 (坐席状态是已启用可以修改为停用,反之停用可以修改为启用,其余状态不可修改)
34
 *
35
 * @package MuCTS\Sobot\Agents\UpdateAgent
36
 */
37
class Request extends \MuCTS\Sobot\Contracts\Request
38
{
39
    /**
40
     * 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔
41
     * @param array|string $value
42
     * @return Request
43
     */
44
    public function groupIds($value)
45
    {
46
        $this->param['group_ids'] = is_array($value) ? implode(',', $value) : $value;
47
        return $this;
48
    }
49
}