Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 8 1
1
<?php
2
/*
3
 * This file is part of the wannanbigpig/alipay-sdk-php.
4
 *
5
 * (c) wannanbigpig <[email protected]>
6
 *
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace EasyAlipay\Payment\Bill;
12
13
use EasyAlipay\Payment\Kernel\BaseClient;
14
15
/**
16
 * Class Client
17
 *
18
 * @author   liuml  <[email protected]>
19
 * @DateTime 2019-07-22  14:36
20
 */
21
class Client extends BaseClient
22
{
23
    /**
24
     * alipay.data.dataservice.bill.downloadurl.query(查询对账单下载地址).
25
     *
26
     * @param string $billType
27
     * @param string $billDate
28
     *
29
     * @return array|object|\Psr\Http\Message\ResponseInterface|\WannanBigPig\Supports\Collection|\WannanBigPig\Supports\Http\Response
30
     *
31
     * @throws \GuzzleHttp\Exception\GuzzleException
32
     * @throws \EasyAlipay\Kernel\Exceptions\InvalidSignException
33
     * @throws \WannanBigPig\Supports\Exceptions\InvalidArgumentException
34
     */
35 2
    public function get(string $billType, string $billDate)
36
    {
37 2
        $method = 'alipay.data.dataservice.bill.downloadurl.query';
38
39 2
        return $this->request($method, [
40
            'biz_content' => [
41 2
                'bill_type' => $billType,
42 2
                'bill_date' => $billDate,
43
            ],
44
        ]);
45
    }
46
}
47