Skip to content

Commit d51b35c

Browse files
committed
Optimized.
1 parent 092ead7 commit d51b35c

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/LegacyWapGateway.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@
33
namespace Omnipay\Alipay;
44

55
use Omnipay\Alipay\Requests\LegacyWapPurchaseRequest;
6+
use Omnipay\Common\Message\AbstractRequest;
7+
use Omnipay\Common\Message\RequestInterface;
68

79
/**
810
* Class LegacyWapGateway
11+
*
912
* @package Omnipay\Alipay
10-
* @link https://doc.open.alipay.com/docs/doc.htm?treeId=60&articleId=103564&docType=1
13+
* @link https://docs.open.alipay.com/60/103564
14+
* @method RequestInterface authorize(array $options = [])
15+
* @method RequestInterface completeAuthorize(array $options = [])
16+
* @method RequestInterface capture(array $options = [])
17+
* @method RequestInterface void(array $options = [])
18+
* @method RequestInterface createCard(array $options = [])
19+
* @method RequestInterface updateCard(array $options = [])
20+
* @method RequestInterface deleteCard(array $options = [])
1121
*/
1222
class LegacyWapGateway extends AbstractLegacyGateway
1323
{
@@ -26,7 +36,7 @@ public function getName()
2636
/**
2737
* @param array $parameters
2838
*
29-
* @return \Omnipay\Alipay\Requests\LegacyWapPurchaseRequest
39+
* @return LegacyWapPurchaseRequest|AbstractRequest
3040
*/
3141
public function purchase(array $parameters = [])
3242
{

src/Requests/AopCompletePurchaseRequest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Omnipay\Alipay\Responses\AopCompletePurchaseResponse;
66
use Omnipay\Alipay\Responses\AopTradeQueryResponse;
7+
use Omnipay\Common\Exception\InvalidRequestException;
78

89
class AopCompletePurchaseRequest extends AbstractAopRequest
910
{
@@ -13,6 +14,7 @@ class AopCompletePurchaseRequest extends AbstractAopRequest
1314
* gateway, but will usually be either an associative array, or a SimpleXMLElement.
1415
*
1516
* @return mixed
17+
* @throws InvalidRequestException
1618
*/
1719
public function getData()
1820
{
@@ -40,9 +42,9 @@ public function getParams()
4042
/**
4143
* Send the request with specified data
4244
*
43-
* @param mixed $data The data to send
45+
* @param mixed $data The data to send
4446
*
45-
* @return \Omnipay\Alipay\Responses\AopCompletePurchaseResponse
47+
* @return AopCompletePurchaseResponse
4648
*/
4749
public function sendData($data)
4850
{

0 commit comments

Comments
 (0)