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