Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 26
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __call() 0 3 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;
12
13
use EasyAlipay\Kernel\ServiceContainer;
14
15
/**
16
 * Class Application
17
 *
18
 * @author   liuml  <[email protected]>
19
 * @DateTime 2019-07-18  16:13
20
 *
21
 * @property \EasyAlipay\MiniProgram\Members\Client $members
22
 * @property \EasyAlipay\MiniProgram\QrCode\Client  $qrCode
23
 * @property \EasyAlipay\MiniProgram\Version\Client $version
24
 *
25
 * @method mixed getBaseInfo()
26
 * @method mixed updateBaseInfo(array $params)
27
 * @method mixed getUsageTemplateList(array $params)
28
 * @method mixed createSafeDomain(string $safeDomain)
29
 * @method mixed deleteSafeDomain(string $safeDomain)
30
 * @method mixed contentRiskDetect(string $content)
31
 * @method mixed getCategoryList()
32
 * @method mixed faceAuthenticationResultsQuery()
33
 * @method mixed getAccessToken(string $code, string $grantType = 'authorization_code')
34
 * @method mixed getAuthorizationUrl(string $redirectUri, string $scope = 'auth_base', string $state = null)
35
 * @method mixed getUserInfo(string $authToken)
36
 * @method mixed loginAuthorization(string $state, string $scopes = 'auth_base', string $returnUrl = null)
37
 * @method mixed certifyInitialize(array $params)
38
 * @method mixed certifyStart(string $certifyId)
39
 * @method mixed getCertifyStatus(string $certifyId)
40
 */
41
class Application extends ServiceContainer
42
{
43
44
    /**
45
     * @var array
46
     */
47
    protected $providers = [
48
        'base' => Base\Client::class,
49
        'members' => Base\Client::class,
50
        'qrCode' => Base\Client::class,
51
        'version' => Base\Client::class,
52
        'auth' => \EasyAlipay\BaseService\Auth\Client::class,
53
        'user' => \EasyAlipay\BaseService\User\Client::class,
54
    ];
55
56
    /**
57
     * __call.
58
     *
59
     * @param $name
60
     * @param $arguments
61
     *
62
     * @return mixed
63
     */
64 10
    public function __call($name, $arguments)
65
    {
66 10
        return call_user_func_array([$this['base'], $name], $arguments);
67
    }
68
}
69