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 agentIds() 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\SaveGroupAgent;
14
15
/**
16
 * Class Request
17
 * @property-write string $agent_ids 坐席id,多个坐席id用英文逗号","隔开
18
 *
19
 * @method Request whereGroupid(string $value) 技能组id
20
 * @package MuCTS\Sobot\Agents\SaveAgent
21
 */
22
class Request extends \MuCTS\Sobot\Contracts\Request
23
{
24
    /**
25
     * 坐席id,多个坐席id用英文逗号","隔开
26
     * @param array|string $value
27
     * @return Request
28
     */
29
    public function agentIds($value)
30
    {
31
        $this->param['agent_ids'] = is_array($value) ? implode(',', $value) : $value;
32
        return $this;
33
    }
34
}