Passed
Push — main ( 27e66b...25b76e )
by Abbotton
12:06
created

Member   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A batchUpdate() 0 3 1
A searchList() 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
     * @return array
15
     *
16
     * @throws RequestException
17
     * @throws InvalidArgumentException
18
     */
19
    public function batchUpdate(array $params): array
20
    {
21
        return $this->httpPost('member/batchUpdate', $params);
22
    }
23
24
    /**
25
     * 会员订单列表查询.
26
     *
27
     * @param  array  $params
28
     * @return array
29
     *
30
     * @throws RequestException
31
     * @throws InvalidArgumentException
32
     */
33
    public function searchList(array $params): array
34
    {
35
        return $this->httpPost('member/searchList', $params);
36
    }
37
}
38