Test Failed
Push — master ( 12e206...e5b474 )
by wannanbigpig
03:10 queued 11s
created

Application::setReturnUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
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\Payment;
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 Pay\Client          $pay
22
 * @property Refund\Client       $refund
23
 * @property Bill\Client         $bill
24
 * @property FundAccredit\Client $fundAccredit
25
 *
26
 * @method mixed pay(array $params)
27
 * @method mixed create(array $params)
28
 * @method mixed preCreate(array $params)
29
 * @method mixed close(string $outTradeNo, string $tradeNo = null, string $operatorId = null)
30
 * @method mixed refund(string $tradeNo, $amount, string $outTradeNo = null, array $params = [])
31
 * @method mixed query(string $outTradeNo, string $tradeNo = null, string $orgPid = null)
32
 * @method mixed cancel(string $outTradeNo, string $tradeNo = null)
33
 * @method mixed orderSettle(string $outRequestNo, string $tradeNo, array $royaltyParameters, string $operatorId = null)
34
 * @method mixed orderInfoSync(string $tradeNo, string $outRequestNo, string $bizType, string $origRequestNo = null, string $orderBizInfo = null)
35
 */
36
class Application extends ServiceContainer
37
{
38
39
    /**
40
     * @var array
41
     */
42
    protected $providers = [
43
        'base' => Base\Client::class,
44
        'pay' => Pay\Client::class,
45
        'refund' => Refund\Client::class,
46
        'bill' => Bill\Client::class,
47
        'fundAccredit' => FundAccredit\Client::class,
48
    ];
49
50
    /**
51
     * __call.
52
     *
53
     * @param $name
54
     * @param $arguments
55
     *
56
     * @return mixed
57
     */
58 10
    public function __call($name, $arguments)
59
    {
60 10
        return call_user_func_array([$this['base'], $name], $arguments);
61
    }
62
}
63