SaveOptionDataValue   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\Tickets;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class SaveOptionDataValue
20
 * 工单自定义字段(选择型)添加选项信息
21
 *
22
 * @example 工单选择型自定义字段批量添加选项信息。
23
 * @method SaveOptionDataValue fieldid(string $fieldid) 工单自定义字段ID
24
 * @method SaveOptionDataValue fieldDataValue(array $fieldDataValue) 工单自定义字段选项信息, 格式:[["field_value" => "字段选项值", "field_text" => "字段文本值"]]
25
 * @method SaveOptionDataValue pushFieldDataValueItem(string $fieldValue, string $fieldText) 追加工单自定义字段选项信息
26
 * @method SaveOptionDataValue agentid(string $agentid) 操作坐席ID
27
 * @method SaveOptionDataValue agentName(string $agentName) 操作坐席名称
28
 * @package MuCTS\Sobot\Tickets
29
 */
30
class SaveOptionDataValue extends Sobot
31
{
32
33
    public function getRequestMethod(): string
34
    {
35
        return self::METHOD_POST;
36
    }
37
38
    public function getRequestPath(): string
39
    {
40
        return '/api/ws/5/ticket/save_option_data_value';
41
    }
42
}