QRCodeGateway::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
 * @link https://github.com/phpviet/laravel-omnipay
4
 *
5
 * @copyright (c) PHP Viet
6
 * @license [MIT](https://opensource.org/licenses/MIT)
7
 */
8
9
namespace PHPViet\Laravel\Omnipay\Facades\MoMo;
10
11
use Illuminate\Support\Facades\Facade;
12
use Omnipay\MoMo\QRCodeGateway as MoMoGateway;
13
14
/**
15
 * @method static \Omnipay\MoMo\Message\QRCode\NotificationRequest notification(array $options = [])
16
 * @method static \Omnipay\MoMo\Message\PayConfirmRequest payConfirm(array $options = [])
17
 * @method static \Omnipay\MoMo\Message\PayQueryStatusRequest queryTransaction(array $options = [])
18
 * @method static \Omnipay\MoMo\Message\PayRefundRequest queryRefund(array $options = [])
19
 *
20
 * @author Vuong Minh <[email protected]>
21
 * @since 1.0.0
22
 */
23
class QRCodeGateway extends Facade
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected static function getFacadeAccessor(): MoMoGateway
29
    {
30
        return static::$app['omnipay']->gateway('MoMoQRCode');
31
    }
32
}
33