UpdateGroups   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 getRequestMethod() 0 3 1
A getRequestPath() 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 UpdateGroups
20
 * 更新技能组
21
 *
22
 * 接口说明:
23
 * 更新所属公司技能组信息
24
 *
25
 * @property-write string $group_name 技能组名称
26
 *
27
 * @method UpdateGroups groupName(string $value) 技能组名称
28
 * @method UpdateGroups whereGroupid(string $value) 技能组id
29
 *
30
 * @package MuCTS\Sobot\Agents
31
 */
32
class UpdateGroups extends Sobot
33
{
34
35
    public function getRequestMethod(): string
36
    {
37
        return self::METHOD_POST;
38
    }
39
40
    public function getRequestPath(): string
41
    {
42
        return '/api/basic/5/group/update_groups';
43
    }
44
}