HiddenOrderCommentEvent.php 685 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 订单支付后事件
  4. * Created by PhpStorm.
  5. * Author: 芸众商城 www.yunzshop.com
  6. * Date: 2017/3/3
  7. * Time: 上午11:44
  8. */
  9. namespace app\common\events\order;
  10. class HiddenOrderCommentEvent extends \app\common\events\Event
  11. {
  12. protected $order_goods;
  13. protected $is_hidden;
  14. public function __construct($order_goods)
  15. {
  16. $this->order_goods = $order_goods;
  17. $this->is_hidden = 0;
  18. }
  19. public function getOrderGoods()
  20. {
  21. return $this->order_goods;
  22. }
  23. public function setHidden()
  24. {
  25. $this->is_hidden = 1;
  26. }
  27. public function isShow()
  28. {
  29. return $this->is_hidden ? false : true;
  30. }
  31. }