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

Application::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 2
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;
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 10
    public function __call($name, $arguments)
58
    {
59 10
        return call_user_func_array([$this['base'], $name], $arguments);
60
    }
61
}
62