AllInOneGateway   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 1
1
<?php
2
3
namespace PHPViet\Laravel\Omnipay\Facades\MoMo;
4
5
use Illuminate\Support\Facades\Facade;
6
use Omnipay\MoMo\AllInOneGateway as MoMoGateway;
7
8
/**
9
 * @method static \Omnipay\MoMo\Message\AllInOne\PurchaseRequest purchase(array $options = [])
10
 * @method static \Omnipay\MoMo\Message\AllInOne\QueryTransactionRequest queryTransaction(array $options = [])
11
 * @method static \Omnipay\MoMo\Message\AllInOne\CompletePurchaseRequest completePurchase(array $options = [])
12
 * @method static \Omnipay\MoMo\Message\AllInOne\NotificationRequest notification(array $options = [])
13
 * @method static \Omnipay\MoMo\Message\AllInOne\QueryRefundRequest queryRefund(array $options = [])
14
 *
15
 * @author Vuong Minh <[email protected]>
16
 * @since 1.0.0
17
 */
18
class AllInOneGateway extends Facade
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected static function getFacadeAccessor(): MoMoGateway
24
    {
25
        return static::$app['omnipay']->gateway('MoMoAIO');
26
    }
27
}
28