Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

OrderShopChangeStatusEvent.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. }