@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param [type] $url |
35 | 35 | * @param array $params |
36 | 36 | * @param array $headers |
37 | - * @return \PatricPoba\MtnMomo\Http\Response |
|
37 | + * @return ApiResponse |
|
38 | 38 | */ |
39 | 39 | public function request($method, $url, $params = [], $headers = []) |
40 | 40 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace PatricPoba\MtnMomo\Http; |
4 | 4 | |
5 | -use GuzzleHttp\Client; |
|
6 | -use GuzzleHttp\ClientInterface; |
|
5 | +use GuzzleHttp\Client; |
|
6 | +use GuzzleHttp\ClientInterface; |
|
7 | 7 | use PatricPoba\MtnMomo\Exceptions\MtnMomoException; |
8 | 8 | |
9 | 9 | class GuzzleClient implements HttpClientInterface |
@@ -75,7 +75,6 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Set values of configs |
77 | 77 | * |
78 | - * @param array $configs |
|
79 | 78 | * @return void |
80 | 79 | */ |
81 | 80 | public function __construct($configArray) |
@@ -89,7 +88,7 @@ discard block |
||
89 | 88 | * |
90 | 89 | * @param string $product disbursement | remittance | collection |
91 | 90 | * @throws \Exception |
92 | - * @return void |
|
91 | + * @return MtnConfig |
|
93 | 92 | */ |
94 | 93 | public function validate($product) |
95 | 94 | { |
@@ -117,7 +116,7 @@ discard block |
||
117 | 116 | * Get set of configs required according to the product being used. |
118 | 117 | * |
119 | 118 | * @param string $product disbursement | remittance | collection |
120 | - * @return array |
|
119 | + * @return string[] |
|
121 | 120 | */ |
122 | 121 | protected function requiredConfigs($product) |
123 | 122 | { |
@@ -40,7 +40,6 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param array|null $params |
|
44 | 43 | * |
45 | 44 | * @return string The OAuth Token. |
46 | 45 | */ |
@@ -100,7 +99,6 @@ discard block |
||
100 | 99 | /** |
101 | 100 | * Make a requestToPay (collection product) or transfer (disbursement product) or transfer (remittance product) |
102 | 101 | * |
103 | - * @param array $params amount, mobileNumber,payeeNote,payerMessage,externalId, callbackUrl* |
|
104 | 102 | * @param string $transactionUuid |
105 | 103 | * @throws \Exception |
106 | 104 | * @return mixed string | PatricPoba\MtnMomo\Http\ApiReponse |
@@ -143,7 +141,7 @@ discard block |
||
143 | 141 | * Undocumented function |
144 | 142 | * |
145 | 143 | * @param [type] $mobileNumber |
146 | - * @return void |
|
144 | + * @return Http\ApiResponse |
|
147 | 145 | */ |
148 | 146 | public function accountHolderActive($mobileNumber) |
149 | 147 | { |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace PatricPoba\MtnMomo; |
4 | 4 | |
5 | 5 | use GuzzleHttp\ClientInterface; |
6 | -use PatricPoba\MtnMomo\MtnConfig; |
|
6 | +use PatricPoba\MtnMomo\Exceptions\MtnMomoException; |
|
7 | 7 | use PatricPoba\MtnMomo\Http\GuzzleClient; |
8 | +use PatricPoba\MtnMomo\MtnConfig; |
|
8 | 9 | use PatricPoba\MtnMomo\Utilities\Helpers; |
9 | -use PatricPoba\MtnMomo\Exceptions\MtnMomoException; |
|
10 | 10 | |
11 | 11 | abstract class MtnMomo extends GuzzleClient |
12 | 12 | { |