Completed
Push — master ( c52910...66a65c )
by lyu
02:53 queued 47s
created

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A handlePaid() 0 4 1
1
<?php
2
3
namespace Kaylyu\Alipay\F2fpay;
4
5
use Closure;
6
use Kaylyu\Alipay\Kernel\ServiceContainer;
7
8
/**
9
 * @property Order\Client  $order
10
 * @property Refund\Client  $refund
11
 *
12
 * Class Application.
13
 */
14
class Application extends ServiceContainer
15
{
16
    /**
17
     * @var array
18
     */
19
    protected $providers = [
20
        Order\ServiceProvider::class,
21
        Refund\ServiceProvider::class,
22
    ];
23
24
    /**
25
     * 订单支付成功通知
26
     * @param Closure $closure
27
     * @author kaylv <[email protected]>
28
     * @return string
29
     */
30
    public function handlePaid(Closure $closure)
31
    {
32
        return (new Notify\Paid($this))->handle($closure);
33
    }
34
}
35