Gateway   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
 * @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