您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
640B

  1. <?php
  2. namespace Lc\CaracoleBundle\Event\Order;
  3. use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
  4. use Lc\CaracoleBundle\Model\Order\OrderStatusInterface;
  5. use Symfony\Contracts\EventDispatcher\Event;
  6. class CartChangeEvent extends Event
  7. {
  8. const PRE_UPDATE = 'cart_event.pre_update';
  9. const POST_UPDATE = 'cart_event.post_update';
  10. protected OrderShopInterface $orderShop;
  11. public function __construct(OrderShopInterface $orderShop, OrderStatusInterface $orderStatus, bool $forceByAdmin)
  12. {
  13. $this->orderShop = $orderShop;
  14. }
  15. public function getOrderShop()
  16. {
  17. return $this->orderShop;
  18. }
  19. }