Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A queryAppAuthToken() 0 9 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\BaseService\Base;
12
13
use EasyAlipay\Kernel\Support\Support;
14
15
/**
16
 * Class Client
17
 *
18
 * @author   liuml  <[email protected]>
19
 * @DateTime 2019/12/16  18:17
20
 */
21
class Client extends Support
22
{
23
    /**
24
     * alipay.open.auth.token.app.query(查询某个应用授权AppAuthToken的授权信息).
25
     *
26
     * @param string $appAuthToken
27
     *
28
     * @return array|object|\Psr\Http\Message\ResponseInterface|\WannanBigPig\Supports\Collection|\WannanBigPig\Supports\Http\Response
29
     *
30
     * @throws \EasyAlipay\Kernel\Exceptions\InvalidSignException
31
     * @throws \GuzzleHttp\Exception\GuzzleException
32
     * @throws \WannanBigPig\Supports\Exceptions\InvalidArgumentException
33
     */
34 2
    public function queryAppAuthToken(string $appAuthToken)
35
    {
36 2
        $method = 'alipay.open.auth.token.app.query';
37
        $params = [
38 2
            'app_auth_token' => $appAuthToken,
39
        ];
40
41 2
        return $this->request($method, [
42 2
            'biz_content' => $params,
43
        ]);
44
    }
45
}
46