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

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 22
ccs 0
cts 3
cp 0
rs 10
c 1
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\Tripartite;
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\Tripartite\Agent\Client $agent
22
 * @property \EasyAlipay\Tripartite\ServiceMarket\Client $serviceMarket
23
 */
24
class Application extends ServiceContainer
25
{
26
27
    /**
28
     * @var array
29
     */
30
    protected $providers = [
31
        'agent' => Agent\Client::class,
32
        'serviceMarket' => ServiceMarket\Client::class,
33
    ];
34
35
    /**
36
     * __call.
37
     *
38
     * @param $name
39
     * @param $arguments
40
     *
41
     * @return mixed
42
     */
43
    public function __call($name, $arguments)
44
    {
45
        return call_user_func_array([$this['base'], $name], $arguments);
46
    }
47
}
48