OfflineMsgData   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\OnlineService;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class OfflineMsgData
20
 * 查询离线消息数据
21
 *
22
 * 接口说明:
23
 * 接口类型:主动调用接口
24
 * 接口作用:可通过调用该接口来获取会话已经结束后,客服发送给用户的消息(即离线消息)。
25
 * 开放平台接口对接的用户,由于所有消息都会推送到消息地址中,没有离线消息数据。
26
 *
27
 * @method OfflineMsgData whereVisitorid(string $value) 访客id
28
 *
29
 * @package MuCTS\Sobot\OnlineService
30
 */
31
class OfflineMsgData extends Sobot
32
{
33
34
    public function getRequestMethod(): string
35
    {
36
        return self::METHOD_POST;
37
    }
38
39
    public function getRequestPath(): string
40
    {
41
        return '/api/chat/5/user/offline_msg_data';
42
    }
43
}