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.

40 satır
1.0KB

  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 OrderShopChangeStatusEvent extends Event
  7. {
  8. const PRE_CHANGE_STATUS = 'order_shop_event.pre_change_status';
  9. const POST_CHANGE_STATUS = 'order_shop_event.post_change_status';
  10. protected OrderShopInterface $orderShop;
  11. protected OrderStatusInterface $orderStatus;
  12. protected bool $forceByAdmin;
  13. public function __construct(OrderShopInterface $orderShop, OrderStatusInterface $orderStatus, bool $forceByAdmin)
  14. {
  15. $this->orderShop = $orderShop;
  16. $this->orderStatus = $orderStatus;
  17. $this->forceByAdmin = $forceByAdmin;
  18. }
  19. public function getOrderShop()
  20. {
  21. return $this->orderShop;
  22. }
  23. public function getOrderStatus()
  24. {
  25. return $this->orderStatus;
  26. }
  27. public function getForceByAdmin()
  28. {
  29. return $this->forceByAdmin;
  30. }
  31. }