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

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

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
 */
34
class Application extends ServiceContainer
35
{
36
37
    /**
38
     * @var array
39
     */
40
    protected $providers = [
41
        'base' => Base\Client::class,
42
        'members' => Base\Client::class,
43
        'qrCode' => Base\Client::class,
44
        'version' => Base\Client::class,
45
        'auth' => \EasyAlipay\BaseService\Auth\Client::class,
46
        'user' => \EasyAlipay\BaseService\User\Client::class,
47
    ];
48
49
    /**
50
     * __call.
51
     *
52
     * @param $name
53
     * @param $arguments
54
     *
55
     * @return mixed
56
     */
57
    public function __call($name, $arguments)
58
    {
59
        return call_user_func_array([$this['base'], $name], $arguments);
60
    }
61
}
62