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

ServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Kaylyu\Alipay\F2fpay\Refund;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
8
/**
9
 * Class ServiceProvider.
10
 */
11
class ServiceProvider implements ServiceProviderInterface
12
{
13
    /**
14
     * {@inheritdoc}.
15
     */
16
    public function register(Container $app)
17
    {
18
        $app['refund'] = function ($app) {
19
            return new Client($app);
20
        };
21
    }
22
}
23