AllInOneGateway::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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