@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * Attache access token to request query. |
| 171 | 171 | * |
| 172 | - * @return Closure |
|
| 172 | + * @return \Closure |
|
| 173 | 173 | */ |
| 174 | 174 | public function accessTokenMiddleware() |
| 175 | 175 | { |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | /** |
| 193 | 193 | * Log the request. |
| 194 | 194 | * |
| 195 | - * @return \GuzzleHttp\Middleware |
|
| 195 | + * @return \Closure |
|
| 196 | 196 | */ |
| 197 | 197 | public function logMiddleware() |
| 198 | 198 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | /** |
| 206 | 206 | * Return retry middleware. |
| 207 | 207 | * |
| 208 | - * @return \GuzzleHttp\RetryMiddleware |
|
| 208 | + * @return \Closure |
|
| 209 | 209 | */ |
| 210 | 210 | protected function retryMiddleware() |
| 211 | 211 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @param string $appId |
| 80 | 80 | * @param string $secret |
| 81 | - * @param Doctrine\Common\Cache\Cache $cache |
|
| 81 | + * @param Cache $cache |
|
| 82 | 82 | */ |
| 83 | 83 | public function __construct($appId, $secret, Cache $cache = null) |
| 84 | 84 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | /** |
| 192 | 192 | * Get the access token from WeChat server. |
| 193 | 193 | * |
| 194 | - * @return array|bool |
|
| 194 | + * @return string |
|
| 195 | 195 | */ |
| 196 | 196 | public function getTokenFromServer() |
| 197 | 197 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * @param string $url |
| 55 | 55 | * @param array $options |
| 56 | 56 | * |
| 57 | - * @return array|bool |
|
| 57 | + * @return ResponseInterface |
|
| 58 | 58 | * |
| 59 | 59 | * @throws HttpException |
| 60 | 60 | */ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param string $url |
| 70 | 70 | * @param array|string $options |
| 71 | 71 | * |
| 72 | - * @return array|bool |
|
| 72 | + * @return ResponseInterface |
|
| 73 | 73 | * |
| 74 | 74 | * @throws HttpException |
| 75 | 75 | */ |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @param string|array $options |
| 88 | 88 | * @param int $encodeOption |
| 89 | 89 | * |
| 90 | - * @return array|bool |
|
| 90 | + * @return ResponseInterface |
|
| 91 | 91 | * |
| 92 | 92 | * @throws HttpException |
| 93 | 93 | */ |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * @param array $files |
| 106 | 106 | * @param array $form |
| 107 | 107 | * |
| 108 | - * @return array|bool |
|
| 108 | + * @return ResponseInterface |
|
| 109 | 109 | * |
| 110 | 110 | * @throws HttpException |
| 111 | 111 | */ |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * Return GuzzleHttp\Client instance. |
| 146 | 146 | * |
| 147 | - * @return \GuzzleHttp\Client. |
|
| 147 | + * @return HttpClient |
|
| 148 | 148 | */ |
| 149 | 149 | public function getClient() |
| 150 | 150 | { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * @param string $method |
| 187 | 187 | * @param array $options |
| 188 | 188 | * |
| 189 | - * @return array|bool |
|
| 189 | + * @return ResponseInterface |
|
| 190 | 190 | * |
| 191 | 191 | * @throws HttpException |
| 192 | 192 | */ |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use GuzzleHttp\Client as HttpClient; |
| 27 | 27 | use GuzzleHttp\HandlerStack; |
| 28 | 28 | use GuzzleHttp\Psr7\Request; |
| 29 | -use GuzzleHttp\Psr7\Response; |
|
| 30 | 29 | use Psr\Http\Message\ResponseInterface; |
| 31 | 30 | |
| 32 | 31 | /** |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * Set cache manager. |
| 189 | 189 | * |
| 190 | - * @param Doctrine\Common\Cache\Cache $cache |
|
| 190 | + * @param Cache $cache |
|
| 191 | 191 | * |
| 192 | 192 | * @return $this |
| 193 | 193 | */ |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | /** |
| 202 | 202 | * Return cache manager. |
| 203 | 203 | * |
| 204 | - * @return Doctrine\Common\Cache\Cache |
|
| 204 | + * @return Cache |
|
| 205 | 205 | */ |
| 206 | 206 | public function getCache() |
| 207 | 207 | { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use EasyWeChat\Core\AbstractAPI; |
| 24 | 24 | use EasyWeChat\Core\Exceptions\InvalidArgumentException; |
| 25 | 25 | use EasyWeChat\Core\Exceptions\RuntimeException; |
| 26 | -use EasyWeChat\Core\Http; |
|
| 27 | 26 | use EasyWeChat\Support\File; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @param string $path |
| 53 | 53 | * |
| 54 | - * @return string |
|
| 54 | + * @return \EasyWeChat\Support\Collection |
|
| 55 | 55 | */ |
| 56 | 56 | public function uploadImage($path) |
| 57 | 57 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @param string $path |
| 65 | 65 | * |
| 66 | - * @return string |
|
| 66 | + * @return \EasyWeChat\Support\Collection |
|
| 67 | 67 | */ |
| 68 | 68 | public function uploadVoice($path) |
| 69 | 69 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * |
| 76 | 76 | * @param string $path |
| 77 | 77 | * |
| 78 | - * @return string |
|
| 78 | + * @return \EasyWeChat\Support\Collection |
|
| 79 | 79 | */ |
| 80 | 80 | public function uploadThumb($path) |
| 81 | 81 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param string $title |
| 90 | 90 | * @param string $description |
| 91 | 91 | * |
| 92 | - * @return string |
|
| 92 | + * @return \EasyWeChat\Support\Collection |
|
| 93 | 93 | */ |
| 94 | 94 | public function uploadVideo($path, $title, $description) |
| 95 | 95 | { |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * Upload article. |
| 110 | 110 | * |
| 111 | - * @param array|Article $article |
|
| 111 | + * @param array|Article $articles |
|
| 112 | 112 | * |
| 113 | - * @return string |
|
| 113 | + * @return \EasyWeChat\Support\Collection |
|
| 114 | 114 | */ |
| 115 | 115 | public function uploadArticle($articles) |
| 116 | 116 | { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * @param array $article |
| 140 | 140 | * @param int $index |
| 141 | 141 | * |
| 142 | - * @return bool |
|
| 142 | + * @return \EasyWeChat\Support\Collection |
|
| 143 | 143 | */ |
| 144 | 144 | public function updateArticle($mediaId, $article, $index = 0) |
| 145 | 145 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param string $path |
| 159 | 159 | * |
| 160 | - * @return string |
|
| 160 | + * @return \EasyWeChat\Support\Collection |
|
| 161 | 161 | */ |
| 162 | 162 | public function uploadArticleImage($path) |
| 163 | 163 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * |
| 194 | 194 | * @param string $mediaId |
| 195 | 195 | * |
| 196 | - * @return bool |
|
| 196 | + * @return \EasyWeChat\Support\Collection |
|
| 197 | 197 | */ |
| 198 | 198 | public function delete($mediaId) |
| 199 | 199 | { |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * @param int $offset |
| 222 | 222 | * @param int $count |
| 223 | 223 | * |
| 224 | - * @return array |
|
| 224 | + * @return \EasyWeChat\Support\Collection |
|
| 225 | 225 | */ |
| 226 | 226 | public function lists($type, $offset = 0, $count = 20) |
| 227 | 227 | { |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | /** |
| 238 | 238 | * Get stats of materials. |
| 239 | 239 | * |
| 240 | - * @return array |
|
| 240 | + * @return \EasyWeChat\Support\Collection |
|
| 241 | 241 | */ |
| 242 | 242 | public function stats() |
| 243 | 243 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @param string $path |
| 252 | 252 | * @param array $form |
| 253 | 253 | * |
| 254 | - * @return string |
|
| 254 | + * @return \EasyWeChat\Support\Collection |
|
| 255 | 255 | * |
| 256 | 256 | * @throws InvalidArgumentException |
| 257 | 257 | */ |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use EasyWeChat\Core\AbstractAPI; |
| 24 | 24 | use EasyWeChat\Core\Exceptions\InvalidArgumentException; |
| 25 | 25 | use EasyWeChat\Core\Exceptions\RuntimeException; |
| 26 | -use EasyWeChat\Core\Http; |
|
| 27 | 26 | use EasyWeChat\Support\File; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @param string $mediaId |
| 76 | 76 | * |
| 77 | - * @return mixed |
|
| 77 | + * @return \Psr\Http\Message\StreamInterface |
|
| 78 | 78 | * |
| 79 | 79 | * @throws \EasyWeChat\Core\Exceptions\RuntimeException |
| 80 | 80 | */ |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @param string $type |
| 100 | 100 | * @param string $path |
| 101 | 101 | * |
| 102 | - * @return string |
|
| 102 | + * @return \EasyWeChat\Support\Collection |
|
| 103 | 103 | * |
| 104 | 104 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 105 | 105 | */ |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @param $path |
| 123 | 123 | * |
| 124 | - * @return string |
|
| 124 | + * @return \EasyWeChat\Support\Collection |
|
| 125 | 125 | * |
| 126 | 126 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 127 | 127 | */ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * |
| 136 | 136 | * @param $path |
| 137 | 137 | * |
| 138 | - * @return string |
|
| 138 | + * @return \EasyWeChat\Support\Collection |
|
| 139 | 139 | * |
| 140 | 140 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 141 | 141 | */ |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * |
| 150 | 150 | * @param $path |
| 151 | 151 | * |
| 152 | - * @return string |
|
| 152 | + * @return \EasyWeChat\Support\Collection |
|
| 153 | 153 | * |
| 154 | 154 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 155 | 155 | */ |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * |
| 164 | 164 | * @param $path |
| 165 | 165 | * |
| 166 | - * @return string |
|
| 166 | + * @return \EasyWeChat\Support\Collection |
|
| 167 | 167 | * |
| 168 | 168 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 169 | 169 | */ |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use EasyWeChat\Core\AbstractAPI; |
| 24 | 24 | use EasyWeChat\Core\Exceptions\InvalidArgumentException; |
| 25 | 25 | use EasyWeChat\Core\Exceptions\RuntimeException; |
| 26 | -use EasyWeChat\Core\Http; |
|
| 27 | 26 | use EasyWeChat\Support\File; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Get all menus. |
| 40 | 40 | * |
| 41 | - * @return array |
|
| 41 | + * @return \EasyWeChat\Support\Collection |
|
| 42 | 42 | */ |
| 43 | 43 | public function all() |
| 44 | 44 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Get current menus. |
| 50 | 50 | * |
| 51 | - * @return array |
|
| 51 | + * @return \EasyWeChat\Support\Collection |
|
| 52 | 52 | */ |
| 53 | 53 | public function current() |
| 54 | 54 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @param int $menuId |
| 80 | 80 | * |
| 81 | - * @return bool |
|
| 81 | + * @return \EasyWeChat\Support\Collection |
|
| 82 | 82 | */ |
| 83 | 83 | public function destroy($menuId = null) |
| 84 | 84 | { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @param string $userId |
| 96 | 96 | * |
| 97 | - * @return bool |
|
| 97 | + * @return \EasyWeChat\Support\Collection |
|
| 98 | 98 | */ |
| 99 | 99 | public function test($userId) |
| 100 | 100 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @param int $industryOne |
| 78 | 78 | * @param int $industryTwo |
| 79 | 79 | * |
| 80 | - * @return bool |
|
| 80 | + * @return \EasyWeChat\Support\Collection |
|
| 81 | 81 | */ |
| 82 | 82 | public function setIndustry($industryOne, $industryTwo) |
| 83 | 83 | { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @param string $shortId |
| 96 | 96 | * |
| 97 | - * @return string |
|
| 97 | + * @return \EasyWeChat\Support\Collection |
|
| 98 | 98 | */ |
| 99 | 99 | public function addTemplate($shortId) |
| 100 | 100 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * |
| 109 | 109 | * @param $data |
| 110 | 110 | * |
| 111 | - * @return mixed |
|
| 111 | + * @return \EasyWeChat\Support\Collection |
|
| 112 | 112 | * |
| 113 | 113 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 114 | 114 | */ |
@@ -173,7 +173,6 @@ discard block |
||
| 173 | 173 | * @param string $orderNo |
| 174 | 174 | * @param float $totalFee |
| 175 | 175 | * @param float $refundFee |
| 176 | - * @param string $refundNo |
|
| 177 | 176 | * @param string $opUserId |
| 178 | 177 | * @param string $type |
| 179 | 178 | * |
@@ -203,7 +202,6 @@ discard block |
||
| 203 | 202 | * @param string $orderNo |
| 204 | 203 | * @param float $totalFee |
| 205 | 204 | * @param float $refundFee |
| 206 | - * @param string $refundNo |
|
| 207 | 205 | * @param string $opUserId |
| 208 | 206 | * |
| 209 | 207 | * @return Collection |
@@ -276,7 +274,7 @@ discard block |
||
| 276 | 274 | * @param string $date |
| 277 | 275 | * @param string $type |
| 278 | 276 | * |
| 279 | - * @return stream |
|
| 277 | + * @return Collection |
|
| 280 | 278 | */ |
| 281 | 279 | public function downloadBill($date, $type = self::BILL_TYPE_ALL) |
| 282 | 280 | { |