Gateway::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\VTCPay;
10
11
use Illuminate\Support\Facades\Facade;
12
use Omnipay\VTCPay\Gateway as VTCPayGateway;
13
14
/**
15
 * @method static \Omnipay\VTCPay\Message\PurchaseRequest purchase(array $options = [])
16
 * @method static \Omnipay\VTCPay\Message\CompletePurchaseRequest completePurchase(array $options = [])
17
 * @method static \Omnipay\VTCPay\Message\NotificationRequest notification(array $options = [])
18
 *
19
 * @author Vuong Minh <[email protected]>
20
 * @since 1.0.0
21
 */
22
class Gateway extends Facade
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected static function getFacadeAccessor(): VTCPayGateway
28
    {
29
        return static::$app['omnipay']->gateway('VTCPay');
30
    }
31
}
32