SupplyChain   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 52
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A updateConsign() 0 3 1
A supplyConsign() 0 3 1
A getOrderByOrderNo() 0 3 1
A getSupplyOrderList() 0 3 1
1
<?php
2
3
namespace Abbotton\DouDian\Api;
4
5
use Illuminate\Http\Client\RequestException;
6
use Psr\SimpleCache\InvalidArgumentException;
7
8
class SupplyChain extends BaseRequest
9
{
10
    /**
11
     * 根据供货单号查询详情.
12
     *
13
     * @param  array  $params
14
     * @return array
15
     * @throws InvalidArgumentException
16
     * @throws RequestException
17
     */
18
    public function getOrderByOrderNo(array $params): array
19
    {
20
        return $this->httpPost('supplyChain/getOrderByOrderNo', $params);
21
    }
22
23
    /**
24
     * 供货单更新发货物流.
25
     *
26
     * @param  array  $params
27
     * @return array
28
     * @throws InvalidArgumentException
29
     * @throws RequestException
30
     */
31
    public function updateConsign(array $params): array
32
    {
33
        return $this->httpPost('supplyChain/updateConsign', $params);
34
    }
35
36
    /**
37
     * 供货单发货.
38
     *
39
     * @param  array  $params
40
     * @return array
41
     * @throws InvalidArgumentException
42
     * @throws RequestException
43
     */
44
    public function supplyConsign(array $params): array
45
    {
46
        return $this->httpPost('supplyChain/supplyConsign', $params);
47
    }
48
49
    /**
50
     * 供货单列表查询.
51
     *
52
     * @param  array  $params
53
     * @return array
54
     * @throws InvalidArgumentException
55
     * @throws RequestException
56
     */
57
    public function getSupplyOrderList(array $params): array
58
    {
59
        return $this->httpPost('supplyChain/getSupplyOrderList', $params);
60
    }
61
}
62