Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 66982ec

Browse files
Added type declarations for all facade gateways
1 parent 48ea643 commit 66982ec

File tree

8 files changed

+37
-8
lines changed

8 files changed

+37
-8
lines changed

‎src/Facades/MoMo/AllInOneGateway.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
namespace PHPViet\Laravel\Omnipay\Facades\MoMo;
44

55
use Illuminate\Support\Facades\Facade;
6+
use Omnipay\MoMo\AllInOneGateway as MoMoGateway;
67

78
/**
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+
*
815
* @author Vuong Minh <vuongxuongminh@gmail.com>
916
* @since 1.0.0
1017
*/
@@ -13,7 +20,7 @@ class AllInOneGateway extends Facade
1320
/**
1421
* {@inheritdoc}
1522
*/
16-
protected static function getFacadeAccessor()
23+
protected static function getFacadeAccessor(): MoMoGateway
1724
{
1825
return static::$app['omnipay']->gateway('MoMoAIO');
1926
}

‎src/Facades/MoMo/AppInAppGateway.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\MoMo;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\MoMo\AppInAppGateway as MoMoGateway;
1213

1314
/**
15+
* @method static \Omnipay\MoMo\Message\AppInApp\PurchaseRequest purchase(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+
*
1420
* @author Vuong Minh <vuongxuongminh@gmail.com>
1521
* @since 1.0.0
1622
*/
@@ -19,7 +25,7 @@ class AppInAppGateway extends Facade
1925
/**
2026
* {@inheritdoc}
2127
*/
22-
protected static function getFacadeAccessor()
28+
protected static function getFacadeAccessor(): MoMoGateway
2329
{
2430
return static::$app['omnipay']->gateway('MoMoAIA');
2531
}

‎src/Facades/MoMo/POSGateway.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\MoMo;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\MoMo\POSGateway as MoMoGateway;
1213

1314
/**
15+
* @method static \Omnipay\MoMo\Message\POS\PurchaseRequest purchase(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+
*
1420
* @author Vuong Minh <vuongxuongminh@gmail.com>
1521
* @since 1.0.0
1622
*/
@@ -19,7 +25,7 @@ class POSGateway extends Facade
1925
/**
2026
* {@inheritdoc}
2127
*/
22-
protected static function getFacadeAccessor()
28+
protected static function getFacadeAccessor(): MoMoGateway
2329
{
2430
return static::$app['omnipay']->gateway('MoMoPOS');
2531
}

‎src/Facades/MoMo/QRCodeGateway.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\MoMo;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\MoMo\QRCodeGateway as MoMoGateway;
1213

1314
/**
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+
*
1420
* @author Vuong Minh <vuongxuongminh@gmail.com>
1521
* @since 1.0.0
1622
*/
@@ -19,7 +25,7 @@ class QRCodeGateway extends Facade
1925
/**
2026
* {@inheritdoc}
2127
*/
22-
protected static function getFacadeAccessor()
28+
protected static function getFacadeAccessor(): MoMoGateway
2329
{
2430
return static::$app['omnipay']->gateway('MoMoQRCode');
2531
}

‎src/Facades/OnePay/DomesticGateway.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\OnePay;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\OnePay\DomesticGateway as OnePayGateway;
1213

1314
/**
1415
* @method static \Omnipay\OnePay\Message\Domestic\PurchaseRequest purchase(array $options = [])
@@ -24,7 +25,7 @@ class DomesticGateway extends Facade
2425
/**
2526
* {@inheritdoc}
2627
*/
27-
protected static function getFacadeAccessor()
28+
protected static function getFacadeAccessor(): OnePayGateway
2829
{
2930
return static::$app['omnipay']->gateway('OnePayDomestic');
3031
}

‎src/Facades/OnePay/InternationalGateway.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\OnePay;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\OnePay\InternationalGateway as OnePayGateway;
1213

1314
/**
1415
* @method static \Omnipay\OnePay\Message\International\PurchaseRequest purchase(array $options = [])
@@ -24,7 +25,7 @@ class InternationalGateway extends Facade
2425
/**
2526
* {@inheritdoc}
2627
*/
27-
protected static function getFacadeAccessor()
28+
protected static function getFacadeAccessor(): OnePayGateway
2829
{
2930
return static::$app['omnipay']->gateway('OnePayInternational');
3031
}

‎src/Facades/VNPay/Gateway.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\VNPay;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\VNPay\Gateway as VNPayGateway;
1213

1314
/**
1415
* @method static \Omnipay\VNPay\Message\PurchaseRequest purchase(array $options = [])
@@ -25,7 +26,7 @@ class Gateway extends Facade
2526
/**
2627
* {@inheritdoc}
2728
*/
28-
protected static function getFacadeAccessor()
29+
protected static function getFacadeAccessor(): VNPayGateway
2930
{
3031
return static::$app['omnipay']->gateway('VNPay');
3132
}

‎src/Facades/VTCPay/Gateway.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace PHPViet\Laravel\Omnipay\Facades\VTCPay;
1010

1111
use Illuminate\Support\Facades\Facade;
12+
use Omnipay\VTCPay\Gateway as VTCPayGateway;
1213

1314
/**
1415
* @method static \Omnipay\VTCPay\Message\PurchaseRequest purchase(array $options = [])
@@ -23,7 +24,7 @@ class Gateway extends Facade
2324
/**
2425
* {@inheritdoc}
2526
*/
26-
protected static function getFacadeAccessor()
27+
protected static function getFacadeAccessor(): VTCPayGateway
2728
{
2829
return static::$app['omnipay']->gateway('VTCPay');
2930
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /