GetTicketData   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
4
namespace MuCTS\Sobot\Tickets;
5
6
7
use MuCTS\Sobot\Contracts\Sobot;
8
9
/**
10
 * Class GetTicketData
11
 * 查询工单统计概览
12
 *
13
 * 接口说明:
14
 * 获取某个时间段工单对应的数量。
15
 * @method GetTicketData whereStartDatetime(string $startDatetime) 开始时间,2019-09-18 00:00:00
16
 * @method GetTicketData whereEndDatetime(string $endDatetime) 结束时间,2019-09-18 23:59:59
17
 * @package MuCTS\Sobot\Tickets
18
 */
19
class GetTicketData extends Sobot
20
{
21
22
    public function getRequestMethod(): string
23
    {
24
        return self::METHOD_GET;
25
    }
26
27
    public function getRequestPath(): string
28
    {
29
        return '/api/ws/5/ticket/get_ticket_data';
30
    }
31
}