Completed
Push — master ( 40007f...17133d )
by wannanbigpig
03:34 queued 10s
created

Client::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 11
ccs 7
cts 7
cp 1
rs 10
cc 1
nc 1
nop 3
crap 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 2
    public function create(string $urlParam, string $queryParam, string $describe)
31
    {
32 2
        $method = 'alipay.open.app.qrcode.create';
33
        $params = [
34 2
            'url_param' => $urlParam,
35 2
            'query_param' => $queryParam,
36 2
            'describe' => $describe,
37
        ];
38
39 2
        return $this->request($method, [
40 2
            'biz_content' => $params,
41
        ]);
42
    }
43
}
44