Completed
Push — master ( 0cc076...0c4ed6 )
by Songda
03:02
created

Pay   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 3
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 1
A alipay() 0 4 1
A wechat() 0 4 1
1
<?php
2
3
namespace Yansongda\LaravelPay\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
class Pay extends Facade
8
{
9
    /**
10
     * Return the facade accessor.
11
     *
12
     * @return string
13
     */
14
    public static function getFacadeAccessor()
15
    {
16
        return 'pay.alipay';
17
    }
18
19
    /**
20
     * Return the facade accessor.
21
     *
22
     * @return string
23
     */
24
    public static function alipay()
25
    {
26
        return 'pay.alipay';
27
    }
28
29
    /**
30
     * Return the facade accessor.
31
     *
32
     * @return string
33
     */
34
    public static function wechat()
35
    {
36
        return 'pay.wechat';
37
    }
38
}
39