@@ -77,7 +77,6 @@ discard block |
||
| 77 | 77 | * Send MerchantPay. |
| 78 | 78 | * |
| 79 | 79 | * @param array $params |
| 80 | - * @param string $type |
|
| 81 | 80 | * |
| 82 | 81 | * @return \EasyWeChat\Support\Collection |
| 83 | 82 | */ |
@@ -137,7 +136,7 @@ discard block |
||
| 137 | 136 | /** |
| 138 | 137 | * Parse Response XML to array. |
| 139 | 138 | * |
| 140 | - * @param \Psr\Http\Message\ResponseInterface|string $response |
|
| 139 | + * @param ResponseInterface $response |
|
| 141 | 140 | * |
| 142 | 141 | * @return \EasyWeChat\Support\Collection |
| 143 | 142 | */ |
@@ -418,7 +418,7 @@ |
||
| 418 | 418 | /** |
| 419 | 419 | * Parse Response XML to array. |
| 420 | 420 | * |
| 421 | - * @param string|\Psr\Http\Message\ResponseInterface $response |
|
| 421 | + * @param ResponseInterface $response |
|
| 422 | 422 | * |
| 423 | 423 | * @return \EasyWeChat\Support\Collection |
| 424 | 424 | */ |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @param int $industryOne |
| 81 | 81 | * @param int $industryTwo |
| 82 | 82 | * |
| 83 | - * @return bool |
|
| 83 | + * @return \EasyWeChat\Support\Collection |
|
| 84 | 84 | */ |
| 85 | 85 | public function setIndustry($industryOne, $industryTwo) |
| 86 | 86 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * Get industry. |
| 97 | 97 | * |
| 98 | - * @return array |
|
| 98 | + * @return \EasyWeChat\Support\Collection |
|
| 99 | 99 | */ |
| 100 | 100 | public function getIndustry() |
| 101 | 101 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * |
| 109 | 109 | * @param string $shortId |
| 110 | 110 | * |
| 111 | - * @return string |
|
| 111 | + * @return \EasyWeChat\Support\Collection |
|
| 112 | 112 | */ |
| 113 | 113 | public function addTemplate($shortId) |
| 114 | 114 | { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | /** |
| 121 | 121 | * Get all private template. |
| 122 | 122 | * |
| 123 | - * @return array |
|
| 123 | + * @return \EasyWeChat\Support\Collection |
|
| 124 | 124 | */ |
| 125 | 125 | public function getAllPrivateTemplate() |
| 126 | 126 | { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * |
| 134 | 134 | * @param int $templateId |
| 135 | 135 | * |
| 136 | - * @return array |
|
| 136 | + * @return \EasyWeChat\Support\Collection |
|
| 137 | 137 | */ |
| 138 | 138 | public function delPrivateTemplate($templateId) |
| 139 | 139 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * |
| 147 | 147 | * @param $data |
| 148 | 148 | * |
| 149 | - * @return mixed |
|
| 149 | + * @return \EasyWeChat\Support\Collection |
|
| 150 | 150 | * |
| 151 | 151 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
| 152 | 152 | */ |
@@ -91,8 +91,8 @@ |
||
| 91 | 91 | /** |
| 92 | 92 | * Object to array. |
| 93 | 93 | * |
| 94 | - * @param string $data |
|
| 95 | 94 | * |
| 95 | + * @param SimpleXMLElement $obj |
|
| 96 | 96 | * @return array |
| 97 | 97 | */ |
| 98 | 98 | protected static function normalize($obj) |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @param string $account |
| 40 | 40 | * |
| 41 | - * @return array |
|
| 41 | + * @return \EasyWeChat\Support\Collection |
|
| 42 | 42 | */ |
| 43 | 43 | public function lists($account) |
| 44 | 44 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * List all waiters of $account. |
| 50 | 50 | * |
| 51 | - * @return array |
|
| 51 | + * @return \EasyWeChat\Support\Collection |
|
| 52 | 52 | */ |
| 53 | 53 | public function waiters() |
| 54 | 54 | { |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | * Create a session. |
| 60 | 60 | * |
| 61 | 61 | * @param string $account |
| 62 | - * @param string $openid |
|
| 62 | + * @param string $openId |
|
| 63 | 63 | * |
| 64 | - * @return bool |
|
| 64 | + * @return \EasyWeChat\Support\Collection |
|
| 65 | 65 | */ |
| 66 | 66 | public function create($account, $openId) |
| 67 | 67 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param string $account |
| 80 | 80 | * @param string $openId |
| 81 | 81 | * |
| 82 | - * @return bool |
|
| 82 | + * @return \EasyWeChat\Support\Collection |
|
| 83 | 83 | */ |
| 84 | 84 | public function close($account, $openId) |
| 85 | 85 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * |
| 97 | 97 | * @param string $openId |
| 98 | 98 | * |
| 99 | - * @return bool |
|
| 99 | + * @return \EasyWeChat\Support\Collection |
|
| 100 | 100 | */ |
| 101 | 101 | public function get($openId) |
| 102 | 102 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * 获取卡券颜色. |
| 78 | 78 | * |
| 79 | - * @return array |
|
| 79 | + * @return \EasyWeChat\Support\Collection |
|
| 80 | 80 | */ |
| 81 | 81 | public function getColors() |
| 82 | 82 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @param array $especial |
| 92 | 92 | * @param array $advancedInfo |
| 93 | 93 | * |
| 94 | - * @return bool|array |
|
| 94 | + * @return \EasyWeChat\Support\Collection |
|
| 95 | 95 | */ |
| 96 | 96 | public function create($cardType = 'member_card', array $baseInfo = [], array $especial = [], array $advancedInfo = []) |
| 97 | 97 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * |
| 111 | 111 | * @param array $cards |
| 112 | 112 | * |
| 113 | - * @return array|bool |
|
| 113 | + * @return \EasyWeChat\Support\Collection |
|
| 114 | 114 | */ |
| 115 | 115 | public function QRCode(array $cards = []) |
| 116 | 116 | { |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | * SCENE_H5 h5页面,SCENE_IVR 自动回复,SCENE_CARD_CUSTOM_CELL 卡券自定义cell] |
| 250 | 250 | * @param array $cardList |
| 251 | 251 | * |
| 252 | - * @return array |
|
| 252 | + * @return \EasyWeChat\Support\Collection |
|
| 253 | 253 | */ |
| 254 | 254 | public function createLandingPage($banner, $pageTitle, $canShare, $scene, $cardList) |
| 255 | 255 | { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | * @param string $cardId |
| 271 | 271 | * @param array $code |
| 272 | 272 | * |
| 273 | - * @return array |
|
| 273 | + * @return \EasyWeChat\Support\Collection |
|
| 274 | 274 | */ |
| 275 | 275 | public function deposit($cardId, $code) |
| 276 | 276 | { |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * |
| 288 | 288 | * @param string $cardId |
| 289 | 289 | * |
| 290 | - * @return array |
|
| 290 | + * @return \EasyWeChat\Support\Collection |
|
| 291 | 291 | */ |
| 292 | 292 | public function getDepositedCount($cardId) |
| 293 | 293 | { |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | * @param string $cardId |
| 305 | 305 | * @param array $code |
| 306 | 306 | * |
| 307 | - * @return array |
|
| 307 | + * @return \EasyWeChat\Support\Collection |
|
| 308 | 308 | */ |
| 309 | 309 | public function checkCode($cardId, $code) |
| 310 | 310 | { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | * @param bool $checkConsume |
| 324 | 324 | * @param string $cardId |
| 325 | 325 | * |
| 326 | - * @return array |
|
| 326 | + * @return \EasyWeChat\Support\Collection |
|
| 327 | 327 | */ |
| 328 | 328 | public function getCode($code, $checkConsume, $cardId) |
| 329 | 329 | { |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | * @param string $cardId |
| 343 | 343 | * @param string $code |
| 344 | 344 | * |
| 345 | - * @return array |
|
| 345 | + * @return \EasyWeChat\Support\Collection |
|
| 346 | 346 | */ |
| 347 | 347 | public function consume($cardId, $code) |
| 348 | 348 | { |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | * |
| 360 | 360 | * @param string $encryptedCode |
| 361 | 361 | * |
| 362 | - * @return array |
|
| 362 | + * @return \EasyWeChat\Support\Collection |
|
| 363 | 363 | */ |
| 364 | 364 | public function decryptCode($encryptedCode) |
| 365 | 365 | { |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | * |
| 376 | 376 | * @param string $cardId |
| 377 | 377 | * |
| 378 | - * @return array |
|
| 378 | + * @return \EasyWeChat\Support\Collection |
|
| 379 | 379 | */ |
| 380 | 380 | public function getHtml($cardId) |
| 381 | 381 | { |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * @param array $openid |
| 393 | 393 | * @param array $username |
| 394 | 394 | * |
| 395 | - * @return array |
|
| 395 | + * @return \EasyWeChat\Support\Collection |
|
| 396 | 396 | */ |
| 397 | 397 | public function setTestWhitelist($openid, $username) |
| 398 | 398 | { |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | * @param string $openid |
| 411 | 411 | * @param string $cardId |
| 412 | 412 | * |
| 413 | - * @return array |
|
| 413 | + * @return \EasyWeChat\Support\Collection |
|
| 414 | 414 | */ |
| 415 | 415 | public function getUserCards($openid, $cardId = '') |
| 416 | 416 | { |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | * |
| 428 | 428 | * @param string $cardId |
| 429 | 429 | * |
| 430 | - * @return array |
|
| 430 | + * @return \EasyWeChat\Support\Collection |
|
| 431 | 431 | */ |
| 432 | 432 | public function getCard($cardId) |
| 433 | 433 | { |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * @param int $count |
| 446 | 446 | * @param string $statusList |
| 447 | 447 | * |
| 448 | - * @return array |
|
| 448 | + * @return \EasyWeChat\Support\Collection |
|
| 449 | 449 | */ |
| 450 | 450 | public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK') |
| 451 | 451 | { |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | * @param array $baseInfo |
| 467 | 467 | * @param array $especial |
| 468 | 468 | * |
| 469 | - * @return array |
|
| 469 | + * @return \EasyWeChat\Support\Collection |
|
| 470 | 470 | */ |
| 471 | 471 | public function update($cardId, $type, $baseInfo = [], $especial = []) |
| 472 | 472 | { |
@@ -489,7 +489,7 @@ discard block |
||
| 489 | 489 | * @param string $cardId |
| 490 | 490 | * @param bool $isOpen |
| 491 | 491 | * |
| 492 | - * @return array |
|
| 492 | + * @return \EasyWeChat\Support\Collection |
|
| 493 | 493 | */ |
| 494 | 494 | public function setPayCell($cardId, $isOpen = true) |
| 495 | 495 | { |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | * @param string $cardId |
| 508 | 508 | * @param int $amount |
| 509 | 509 | * |
| 510 | - * @return bool |
|
| 510 | + * @return \EasyWeChat\Support\Collection |
|
| 511 | 511 | */ |
| 512 | 512 | public function increaseStock($cardId, $amount) |
| 513 | 513 | { |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | * @param string $cardId |
| 521 | 521 | * @param int $amount |
| 522 | 522 | * |
| 523 | - * @return bool |
|
| 523 | + * @return \EasyWeChat\Support\Collection |
|
| 524 | 524 | */ |
| 525 | 525 | public function reduceStock($cardId, $amount) |
| 526 | 526 | { |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | * @param int $amount |
| 535 | 535 | * @param string $action |
| 536 | 536 | * |
| 537 | - * @return array |
|
| 537 | + * @return \EasyWeChat\Support\Collection |
|
| 538 | 538 | */ |
| 539 | 539 | protected function updateStock($cardId, $amount, $action = 'increase') |
| 540 | 540 | { |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | * @param string $newCode |
| 555 | 555 | * @param array $cardId |
| 556 | 556 | * |
| 557 | - * @return array |
|
| 557 | + * @return \EasyWeChat\Support\Collection |
|
| 558 | 558 | */ |
| 559 | 559 | public function updateCode($code, $newCode, $cardId = []) |
| 560 | 560 | { |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | * |
| 573 | 573 | * @param string $cardId |
| 574 | 574 | * |
| 575 | - * @return array |
|
| 575 | + * @return \EasyWeChat\Support\Collection |
|
| 576 | 576 | */ |
| 577 | 577 | public function delete($cardId) |
| 578 | 578 | { |
@@ -589,7 +589,7 @@ discard block |
||
| 589 | 589 | * @param string $code |
| 590 | 590 | * @param string $cardId |
| 591 | 591 | * |
| 592 | - * @return array |
|
| 592 | + * @return \EasyWeChat\Support\Collection |
|
| 593 | 593 | */ |
| 594 | 594 | public function disable($code, $cardId = '') |
| 595 | 595 | { |
@@ -606,7 +606,7 @@ discard block |
||
| 606 | 606 | * |
| 607 | 607 | * @param array $activate |
| 608 | 608 | * |
| 609 | - * @return array |
|
| 609 | + * @return \EasyWeChat\Support\Collection |
|
| 610 | 610 | */ |
| 611 | 611 | public function activate($activate = []) |
| 612 | 612 | { |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | * @param array $requiredForm |
| 621 | 621 | * @param array $optionalForm |
| 622 | 622 | * |
| 623 | - * @return array |
|
| 623 | + * @return \EasyWeChat\Support\Collection |
|
| 624 | 624 | */ |
| 625 | 625 | public function activateUserForm($cardId, array $requiredForm = [], array $optionalForm = []) |
| 626 | 626 | { |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | * @param string $cardId |
| 637 | 637 | * @param string $code |
| 638 | 638 | * |
| 639 | - * @return array |
|
| 639 | + * @return \EasyWeChat\Support\Collection |
|
| 640 | 640 | */ |
| 641 | 641 | public function getMemberCardUser($cardId, $code) |
| 642 | 642 | { |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | * |
| 654 | 654 | * @param array $params |
| 655 | 655 | * |
| 656 | - * @return array |
|
| 656 | + * @return \EasyWeChat\Support\Collection |
|
| 657 | 657 | */ |
| 658 | 658 | public function updateMemberCardUser(array $params = []) |
| 659 | 659 | { |
@@ -665,7 +665,7 @@ discard block |
||
| 665 | 665 | * |
| 666 | 666 | * @param array $info |
| 667 | 667 | * |
| 668 | - * @return array |
|
| 668 | + * @return \EasyWeChat\Support\Collection |
|
| 669 | 669 | */ |
| 670 | 670 | public function createSubMerchant(array $info = []) |
| 671 | 671 | { |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | * @param int $merchantId |
| 693 | 693 | * @param array $info |
| 694 | 694 | * |
| 695 | - * @return array |
|
| 695 | + * @return \EasyWeChat\Support\Collection |
|
| 696 | 696 | */ |
| 697 | 697 | public function updateSubMerchant($merchantId, array $info = []) |
| 698 | 698 | { |
@@ -719,7 +719,7 @@ discard block |
||
| 719 | 719 | * |
| 720 | 720 | * @param int $merchantId |
| 721 | 721 | * |
| 722 | - * @return array |
|
| 722 | + * @return \EasyWeChat\Support\Collection |
|
| 723 | 723 | */ |
| 724 | 724 | public function getSubMerchant($merchantId) |
| 725 | 725 | { |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | * @param int $limit |
| 734 | 734 | * @param string $status |
| 735 | 735 | * |
| 736 | - * @return array |
|
| 736 | + * @return \EasyWeChat\Support\Collection |
|
| 737 | 737 | */ |
| 738 | 738 | public function listSubMerchants($beginId = 0, $limit = 50, $status = 'CHECKING') |
| 739 | 739 | { |
@@ -749,7 +749,7 @@ discard block |
||
| 749 | 749 | /** |
| 750 | 750 | * 卡券开放类目查询接口. |
| 751 | 751 | * |
| 752 | - * @return array|bool |
|
| 752 | + * @return \EasyWeChat\Support\Collection |
|
| 753 | 753 | */ |
| 754 | 754 | public function getCategories() |
| 755 | 755 | { |
@@ -785,7 +785,7 @@ discard block |
||
| 785 | 785 | * |
| 786 | 786 | * @param string $url |
| 787 | 787 | * |
| 788 | - * @return array |
|
| 788 | + * @return Card |
|
| 789 | 789 | */ |
| 790 | 790 | public function setUrl($url) |
| 791 | 791 | { |