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.

CartChangeEvent.php 640B

пре 3 година
12345678910111213141516171819202122232425
  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. }