GoodsChangeEvent.php 502 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * 商品修改
  4. * Created by PhpStorm.
  5. * User: yunzhong
  6. * Date: 2019/12/6
  7. * Time: 9:50
  8. */
  9. namespace app\common\events\goods;
  10. use app\common\events\Event;
  11. class GoodsChangeEvent extends Event
  12. {
  13. /**
  14. * @var
  15. */
  16. private $goods; //商品
  17. /**
  18. * GoodsLimitBuyCloseEvent constructor.
  19. * @param $goods
  20. */
  21. function __construct($goods)
  22. {
  23. $this->goods = $goods;
  24. }
  25. public function getGoods()
  26. {
  27. return $this->goods;
  28. }
  29. }