Completed
Push — master ( 744a3f...471bbc )
by Carlos
03:45
created
src/Card/Card.php 1 patch
Doc Comments   +35 added lines, -36 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      *                          SCENE_H5 h5页面,SCENE_IVR 自动回复,SCENE_CARD_CUSTOM_CELL 卡券自定义cell]
251 251
      * @param array  $cardList
252 252
      *
253
-     * @return array
253
+     * @return \EasyWeChat\Support\Collection
254 254
      */
255 255
     public function createLandingPage($banner, $pageTitle, $canShare, $scene, $cardList)
256 256
     {
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param string $cardId
272 272
      * @param array  $code
273 273
      *
274
-     * @return array
274
+     * @return \EasyWeChat\Support\Collection
275 275
      */
276 276
     public function deposit($cardId, $code)
277 277
     {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      *
289 289
      * @param string $cardId
290 290
      *
291
-     * @return array
291
+     * @return \EasyWeChat\Support\Collection
292 292
      */
293 293
     public function getDepositedCount($cardId)
294 294
     {
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      * @param string $cardId
306 306
      * @param array  $code
307 307
      *
308
-     * @return array
308
+     * @return \EasyWeChat\Support\Collection
309 309
      */
310 310
     public function checkCode($cardId, $code)
311 311
     {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      * @param bool   $checkConsume
325 325
      * @param string $cardId
326 326
      *
327
-     * @return array
327
+     * @return \EasyWeChat\Support\Collection
328 328
      */
329 329
     public function getCode($code, $checkConsume, $cardId)
330 330
     {
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      * @param string $cardId
344 344
      * @param string $code
345 345
      *
346
-     * @return array
346
+     * @return \EasyWeChat\Support\Collection
347 347
      */
348 348
     public function consume($cardId, $code)
349 349
     {
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      *
361 361
      * @param string $encryptedCode
362 362
      *
363
-     * @return array
363
+     * @return \EasyWeChat\Support\Collection
364 364
      */
365 365
     public function decryptCode($encryptedCode)
366 366
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      *
377 377
      * @param string $cardId
378 378
      *
379
-     * @return array
379
+     * @return \EasyWeChat\Support\Collection
380 380
      */
381 381
     public function getHtml($cardId)
382 382
     {
@@ -390,10 +390,9 @@  discard block
 block discarded – undo
390 390
     /**
391 391
      * 设置测试白名单.
392 392
      *
393
-     * @param array $openid
394
-     * @param array $username
393
+     * @param array $openids
395 394
      *
396
-     * @return array
395
+     * @return \EasyWeChat\Support\Collection
397 396
      */
398 397
     public function setTestWhitelist($openids)
399 398
     {
@@ -409,7 +408,7 @@  discard block
 block discarded – undo
409 408
      *
410 409
      * @param array $usernames
411 410
      *
412
-     * @return array
411
+     * @return \EasyWeChat\Support\Collection
413 412
      */
414 413
     public function setTestWhitelistByUsername($usernames)
415 414
     {
@@ -426,7 +425,7 @@  discard block
 block discarded – undo
426 425
      * @param string $openid
427 426
      * @param string $cardId
428 427
      *
429
-     * @return array
428
+     * @return \EasyWeChat\Support\Collection
430 429
      */
431 430
     public function getUserCards($openid, $cardId = '')
432 431
     {
@@ -443,7 +442,7 @@  discard block
 block discarded – undo
443 442
      *
444 443
      * @param string $cardId
445 444
      *
446
-     * @return array
445
+     * @return \EasyWeChat\Support\Collection
447 446
      */
448 447
     public function getCard($cardId)
449 448
     {
@@ -461,7 +460,7 @@  discard block
 block discarded – undo
461 460
      * @param int    $count
462 461
      * @param string $statusList
463 462
      *
464
-     * @return array
463
+     * @return \EasyWeChat\Support\Collection
465 464
      */
466 465
     public function lists($offset = 0, $count = 10, $statusList = 'CARD_STATUS_VERIFY_OK')
467 466
     {
@@ -482,7 +481,7 @@  discard block
 block discarded – undo
482 481
      * @param array  $baseInfo
483 482
      * @param array  $especial
484 483
      *
485
-     * @return array
484
+     * @return \EasyWeChat\Support\Collection
486 485
      */
487 486
     public function update($cardId, $type, $baseInfo = [], $especial = [])
488 487
     {
@@ -505,7 +504,7 @@  discard block
 block discarded – undo
505 504
      * @param string $cardId
506 505
      * @param bool   $isOpen
507 506
      *
508
-     * @return array
507
+     * @return \EasyWeChat\Support\Collection
509 508
      */
510 509
     public function setPayCell($cardId, $isOpen = true)
511 510
     {
@@ -523,7 +522,7 @@  discard block
 block discarded – undo
523 522
      * @param string $cardId
524 523
      * @param int    $amount
525 524
      *
526
-     * @return bool
525
+     * @return \EasyWeChat\Support\Collection
527 526
      */
528 527
     public function increaseStock($cardId, $amount)
529 528
     {
@@ -536,7 +535,7 @@  discard block
 block discarded – undo
536 535
      * @param string $cardId
537 536
      * @param int    $amount
538 537
      *
539
-     * @return bool
538
+     * @return \EasyWeChat\Support\Collection
540 539
      */
541 540
     public function reduceStock($cardId, $amount)
542 541
     {
@@ -550,7 +549,7 @@  discard block
 block discarded – undo
550 549
      * @param int    $amount
551 550
      * @param string $action
552 551
      *
553
-     * @return array
552
+     * @return \EasyWeChat\Support\Collection
554 553
      */
555 554
     protected function updateStock($cardId, $amount, $action = 'increase')
556 555
     {
@@ -570,7 +569,7 @@  discard block
 block discarded – undo
570 569
      * @param string $newCode
571 570
      * @param array  $cardId
572 571
      *
573
-     * @return array
572
+     * @return \EasyWeChat\Support\Collection
574 573
      */
575 574
     public function updateCode($code, $newCode, $cardId = [])
576 575
     {
@@ -588,7 +587,7 @@  discard block
 block discarded – undo
588 587
      *
589 588
      * @param string $cardId
590 589
      *
591
-     * @return array
590
+     * @return \EasyWeChat\Support\Collection
592 591
      */
593 592
     public function delete($cardId)
594 593
     {
@@ -605,7 +604,7 @@  discard block
 block discarded – undo
605 604
      * @param string $code
606 605
      * @param string $cardId
607 606
      *
608
-     * @return array
607
+     * @return \EasyWeChat\Support\Collection
609 608
      */
610 609
     public function disable($code, $cardId = '')
611 610
     {
@@ -622,7 +621,7 @@  discard block
 block discarded – undo
622 621
      *
623 622
      * @param array $info
624 623
      *
625
-     * @return array
624
+     * @return \EasyWeChat\Support\Collection
626 625
      */
627 626
     public function activate($info = [])
628 627
     {
@@ -636,7 +635,7 @@  discard block
 block discarded – undo
636 635
      * @param array  $requiredForm
637 636
      * @param array  $optionalForm
638 637
      *
639
-     * @return array
638
+     * @return \EasyWeChat\Support\Collection
640 639
      */
641 640
     public function activateUserForm($cardId, array $requiredForm = [], array $optionalForm = [])
642 641
     {
@@ -651,7 +650,7 @@  discard block
 block discarded – undo
651 650
      * @param string $cardId
652 651
      * @param string $code
653 652
      *
654
-     * @return array
653
+     * @return \EasyWeChat\Support\Collection
655 654
      */
656 655
     public function getMemberCardUser($cardId, $code)
657 656
     {
@@ -668,7 +667,7 @@  discard block
 block discarded – undo
668 667
      *
669 668
      * @param array $params
670 669
      *
671
-     * @return array
670
+     * @return \EasyWeChat\Support\Collection
672 671
      */
673 672
     public function updateMemberCardUser(array $params = [])
674 673
     {
@@ -680,7 +679,7 @@  discard block
 block discarded – undo
680 679
      *
681 680
      * @param array $info
682 681
      *
683
-     * @return array
682
+     * @return \EasyWeChat\Support\Collection
684 683
      */
685 684
     public function createSubMerchant(array $info = [])
686 685
     {
@@ -707,7 +706,7 @@  discard block
 block discarded – undo
707 706
      * @param int   $merchantId
708 707
      * @param array $info
709 708
      *
710
-     * @return array
709
+     * @return \EasyWeChat\Support\Collection
711 710
      */
712 711
     public function updateSubMerchant($merchantId, array $info = [])
713 712
     {
@@ -734,7 +733,7 @@  discard block
 block discarded – undo
734 733
      *
735 734
      * @param int $merchantId
736 735
      *
737
-     * @return array
736
+     * @return \EasyWeChat\Support\Collection
738 737
      */
739 738
     public function getSubMerchant($merchantId)
740 739
     {
@@ -748,7 +747,7 @@  discard block
 block discarded – undo
748 747
      * @param int    $limit
749 748
      * @param string $status
750 749
      *
751
-     * @return array
750
+     * @return \EasyWeChat\Support\Collection
752 751
      */
753 752
     public function listSubMerchants($beginId = 0, $limit = 50, $status = 'CHECKING')
754 753
     {
@@ -764,7 +763,7 @@  discard block
 block discarded – undo
764 763
     /**
765 764
      * 卡券开放类目查询接口.
766 765
      *
767
-     * @return array|bool
766
+     * @return \EasyWeChat\Support\Collection
768 767
      */
769 768
     public function getCategories()
770 769
     {
@@ -800,7 +799,7 @@  discard block
 block discarded – undo
800 799
      *
801 800
      * @param string $url
802 801
      *
803
-     * @return array
802
+     * @return Card
804 803
      */
805 804
     public function setUrl($url)
806 805
     {
Please login to merge, or discard this patch.