GroupingCartIdEvent.php 494 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/4/5
  6. * Time: 上午11:33
  7. */
  8. namespace app\common\events\cart;
  9. use app\common\events\Event;
  10. class GroupingCartIdEvent extends Event
  11. {
  12. protected $cart_ids;
  13. public function __construct($cart_ids)
  14. {
  15. $this->cart_ids = $cart_ids;
  16. }
  17. /**
  18. * (监听者)获取购物车model
  19. * @return mixed
  20. */
  21. public function getCartIds(){
  22. return $this->cart_ids;
  23. }
  24. }