GetRobotGuide   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\Robot;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class GetRobotGuide
20
 * 获取常见问题
21
 *
22
 * 接口说明:
23
 * 接口类型:主动调用接口。
24
 * 接口作用:可以调用在智齿后台配置的指定机器人的常见问题列表和引导语。
25
 *
26
 * @method GetRobotGuide whereRobotFlag(int $value) 机器人编号,可以在「设置-机器人-机器人信息」中查看
27
 * @package MuCTS\Sobot\Robot
28
 */
29
class GetRobotGuide extends Sobot
30
{
31
32
    public function getRequestMethod(): string
33
    {
34
        return self::METHOD_POST;
35
    }
36
37
    public function getRequestPath(): string
38
    {
39
        return '/api/robot/5/get_robot_guide';
40
    }
41
}