Member   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A batchUpdate() 0 3 1
A getShopShortLink() 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 Member extends BaseRequest
9
{
10
    /**
11
     * 会员等级更新.
12
     *
13
     * @param array $params
14
     *
15
     * @throws RequestException
16
     * @throws InvalidArgumentException
17
     *
18
     * @return array
19
     */
20
    public function batchUpdate(array $params): array
21
    {
22
        return $this->httpPost('member/batchUpdate', $params);
23
    }
24
25
    /**
26
     * 获取商家推广链接接口.
27
     *
28
     * @param array $params
29
     *
30
     * @throws RequestException
31
     * @throws InvalidArgumentException
32
     *
33
     * @return array
34
     */
35
    public function getShopShortLink(array $params): array
36
    {
37
        return $this->httpPost('member/getShopShortLink', $params);
38
    }
39
}
40