SaveTicketReply   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\Tickets;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class SaveTicketReply
20
 * 回复工单(坐席)
21
 *
22
 * 接口说明:
23
 * 1)客户:客户可回复所有人
24
 * 2)坐席:坐席回复分为仅回复坐席和回复所有人。
25
 *
26
 * @property-write string $ticket_title    工单标题
27
 * @method SaveTicketReply ticketTitle(string $ticketTitle) 工单标题
28
 * @property-write string $ticket_content 工单问题描述
29
 * @method SaveTicketReply ticketContent($ticketContent) 工单问题描述
30
 * @property-write string $ticketid    工单ID
31
 * @method SaveTicketReply ticketid(string $ticketid) 工单ID
32
 * @property-write string $get_ticket_datetime 获取工单信息时间,2019-09-19 13:00:00 (当前时间)
33
 * @method SaveTicketReply getTicketDatetime(string $getTicketDatetime)  获取工单信息时间, 2019-09-19 13:00:00 (当前时间)
34
 * @property-write string $reply_content 工单回复内容
35
 * @method SaveTicketReply replyContent(string $replyContent) 工单回复内容
36
 * @property-write  int $reply_type 工单回复类型:0 所有人可见,1 仅坐席可见
37
 * @method SaveTicketReply replyType(int $replyType) 工单回复类型:0 所有人可见,1 仅坐席可见
38
 * @property-write string|null $deal_groupid 受理技能组ID
39
 * @method SaveTicketReply dealGroupid(?string $dealGroupid) 受理技能组ID
40
 * @property-write string|null $deal_group_name    受理技能组名称
41
 * @method SaveTicketReply dealGroupName(?string $dealGroupName) 受理技能组名称
42
 * @property-write string|null $deal_agentid 受理坐席ID
43
 * @method SaveTicketReply dealAgentid(?string $dealAgentid) 受理坐席ID
44
 * @property-write string|null $deal_agent_name    受理坐席名称
45
 * @method SaveTicketReply dealAgentName(?string $dealAgentName) 受理坐席名称
46
 * @property-write string $reply_agentid 回复坐席ID,指当前处理回复的坐席
47
 * @method SaveTicketReply replyAgentid(string $replyAgentid) 回复坐席ID,指当前处理回复的坐席
48
 * @property-write string $reply_agent_name    回复坐席名称
49
 * @method SaveTicketReply replyAgentMame(string $replyAgentMame)
50
 * @property-write int $ticket_status 工单状态:0尚未受理,1受理中,2等待回复,3已解决,99已关闭,98已删除
51
 * @method SaveTicketReply ticketStatus(int $ticketStatus)
52
 * @property-write int $ticket_level 工单优先级:0低,1中,2高,3紧急
53
 * @method SaveTicketReply ticketLevel(int $ticketLevel)
54
 * @property-write string|null $reply_file_str 回复附件路径:多个附件,附件之间采用英文分号";"隔开
55
 * @method SaveTicketReply replyFileStr(?string $replyFileStr)
56
 * @property-write array|null $copy_agent 抄送坐席,格式:[["agent_name"=>"坐席名称","agent_mail"=>"坐席邮箱"]]
57
 * @method SaveTicketReply copyAgent(?array $copyAgent)
58
 * @method SaveTicketReply pushCopyAgentItem(string $agentName, string $agentMail) 追加抄送坐席项
59
 * @property-write array|null extend_fields 工单自定义字段信息,格式:[["fieldid"=>"自定义字段ID","field_value"=>"自定义字段值"]]
60
 * @method SaveTicketReply extendFields(?array $extendFields)
61
 * @method SaveTicketReply pushExtendFieldsItem(string $fieldid, string $fieldValue) 追加工单自定义字段信息项
62
 * @package MuCTS\Sobot\Tickets
63
 */
64
class SaveTicketReply extends Sobot
65
{
66
67
    public function getRequestMethod(): string
68
    {
69
        return self::METHOD_POST;
70
    }
71
72
    public function getRequestPath(): string
73
    {
74
        return '/api/ws/5/ticket/save_ticket_reply';
75
    }
76
}