You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
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. }