Passed
Push — master ( 4f79b1...15f90b )
by wannanbigpig
05:41 queued 10s
created

Client   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 26
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 11 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\MiniProgram\QrCode;
12
13
use EasyAlipay\Kernel\Support\Support;
14
15
class Client extends Support
16
{
17
    /**
18
     * alipay.open.app.qrcode.create(小程序生成推广二维码接口).
19
     *
20
     * @param string $urlParam
21
     * @param string $queryParam
22
     * @param string $describe
23
     *
24
     * @return array|object|\Psr\Http\Message\ResponseInterface|\WannanBigPig\Supports\Collection|\WannanBigPig\Supports\Http\Response
25
     *
26
     * @throws \EasyAlipay\Kernel\Exceptions\InvalidSignException
27
     * @throws \GuzzleHttp\Exception\GuzzleException
28
     * @throws \WannanBigPig\Supports\Exceptions\InvalidArgumentException
29
     */
30
    public function create(string $urlParam, string $queryParam, string $describe)
31
    {
32
        $method = 'alipay.open.app.qrcode.create';
33
        $params = [
34
            'url_param' => $urlParam,
35
            'query_param' => $queryParam,
36
            'describe' => $describe,
37
        ];
38
39
        return $this->request($method, [
40
            'biz_content' => $params,
41
        ]);
42
    }
43
}
44