StockReduceByOrderEvent.php 551 B

123456789101112131415161718192021222324252627282930313233343536
  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\goods;
  10. class StockReduceByOrderEvent extends \app\common\events\Event
  11. {
  12. protected $goods;
  13. protected $num;
  14. public function __construct($goods, $num)
  15. {
  16. $this->goods = $goods;
  17. $this->num = $num;
  18. }
  19. public function getGoods()
  20. {
  21. return $this->goods;
  22. }
  23. public function getNum()
  24. {
  25. return $this->num;
  26. }
  27. }