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.

242 line
7.7KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Order;
  3. use Doctrine\Common\Collections\Collection;
  4. use Lc\CaracoleBundle\Model\Address\AddressInterface;
  5. use Lc\CaracoleBundle\Model\Config\TaxRateInterface;
  6. use Lc\CaracoleBundle\Model\File\DocumentInterface;
  7. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  8. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  9. use Lc\CaracoleBundle\Model\User\VisitorInterface;
  10. use Lc\SovBundle\Model\Ticket\TicketInterface;
  11. use Lc\SovBundle\Model\User\UserInterface;
  12. /**
  13. * @ORM\MappedSuperclass()
  14. */
  15. interface OrderShopInterface
  16. {
  17. public function getValidationDate(): ?\DateTimeInterface;
  18. public function setValidationDate(\DateTimeInterface $validationDate
  19. ): OrderShopModel;
  20. public function getUser(): ?UserInterface;
  21. public function setUser(?UserInterface $user): OrderShopModel;
  22. public function getInvoiceAddress(): ?AddressInterface;
  23. public function setInvoiceAddress(?AddressInterface $invoiceAddress): OrderShopModel;
  24. public function getInvoiceAddressText(): ?string;
  25. public function setInvoiceAddressText(string $invoiceAddressText): OrderShopModel;
  26. public function getComment(): ?string;
  27. public function setComment(?string $comment): OrderShopModel;
  28. public function getMeanPayment(): ?string;
  29. public function setMeanPayment(string $meanPayment): OrderShopModel;
  30. /**
  31. * @return Collection|OrderStatusHistoryInterface[]
  32. */
  33. public function getOrderStatusHistories(): Collection;
  34. public function addOrderStatusHistory(OrderStatusHistoryInterface $orderStatusHistory
  35. ): OrderShopModel;
  36. public function removeOrderStatusHistory(OrderStatusHistoryInterface $orderStatusHistory
  37. ): OrderShopModel;
  38. /**
  39. * @return Collection|OrderPaymentInterface[]
  40. */
  41. public function getOrderPayments($meanPayment = null): Collection;
  42. public function addOrderPayment(OrderPaymentInterface $orderPayment): OrderShopModel;
  43. public function removeOrderPayment(OrderPaymentInterface $orderPayment
  44. ): OrderShopModel;
  45. /**
  46. * @return Collection|OrderProductInterface[]
  47. */
  48. public function getOrderProducts(): Collection;
  49. public function addOrderProduct(OrderProductInterface $orderProduct): OrderShopModel;
  50. public function removeOrderProduct(OrderProductInterface $orderProduct
  51. ): OrderShopModel;
  52. public function getVisitor(): ?VisitorInterface;
  53. public function setVisitor(?VisitorInterface $visitor): OrderShopModel;
  54. public function getDeliveryInfos(): ?string;
  55. public function setDeliveryInfos(?string $deliveryInfos): OrderShopModel;
  56. public function getOrderStatus(): ?OrderStatusInterface;
  57. public function setOrderStatusProtected(?OrderStatusInterface $orderStatus
  58. ): OrderShopModel;
  59. /**
  60. * @return Collection|OrderReductionCartInterface[]
  61. */
  62. public function getOrderReductionCarts(): Collection;
  63. public function addOrderReductionCart(OrderReductionCartInterface $orderReductionCart
  64. ): OrderShopModel;
  65. public function removeOrderReductionCart(OrderReductionCartInterface $orderReductionCart
  66. ): OrderShopModel;
  67. /**
  68. * @return Collection|OrderReductionCreditInterface[]
  69. */
  70. public function getOrderReductionCredits(): Collection;
  71. public function addOrderReductionCredit(OrderReductionCreditInterface $orderReductionCredit
  72. ): OrderShopModel;
  73. public function removeOrderReductionCredit(OrderReductionCreditInterface $orderReductionCredit
  74. ): OrderShopModel;
  75. /**
  76. * @return Collection|DocumentInterface[]
  77. */
  78. public function getDocuments(): Collection;
  79. public function addDocument(DocumentInterface $document): OrderShopModel;
  80. public function removeDocument(DocumentInterface $document): OrderShopModel;
  81. /**
  82. * @return Collection|TicketInterface[]
  83. */
  84. public function getTickets(): Collection;
  85. public function addTicket(TicketInterface $ticket): OrderShopModel;
  86. public function removeTicket(TicketInterface $ticket): OrderShopModel;
  87. public function getSection(): ?SectionInterface;
  88. public function setSection(?SectionInterface $section): OrderShopModel;
  89. public function getCycleId(): ?int;
  90. public function setCycleId(?int $cycleId): OrderShopModel;
  91. public function getCycleNumber(): ?int;
  92. public function setCycleNumber(?int $cycleNumber): OrderShopModel;
  93. public function getOrderShopCreatedAt(): ?\DateTimeInterface;
  94. public function setOrderShopCreatedAt(?\DateTimeInterface $orderShopCreatedAt
  95. ): OrderShopModel;
  96. public function getIdValidOrder(): ?int;
  97. public function setIdValidOrder(?int $idValidOrder): OrderShopModel;
  98. public function getDeliveryAddress(): ?AddressInterface;
  99. public function setDeliveryAddress(?AddressInterface $deliveryAddress
  100. ): OrderShopModel;
  101. public function getDeliveryAddressText(): ?string;
  102. public function setDeliveryAddressText(string $deliveryAddressText): OrderShopModel;
  103. public function getDeliveryPointSale(): ?PointSaleInterface;
  104. public function setDeliveryPointSale(?PointSaleInterface $deliveryPointSale
  105. ): OrderShopModel;
  106. public function getDeliveryType(): ?string;
  107. public function setDeliveryType(?string $deliveryType): OrderShopModel;
  108. public function getDeliveryPrice(): ?float;
  109. public function setDeliveryPrice(?float $deliveryPrice): OrderShopModel;
  110. public function getDeliveryTaxRate(): ?TaxRateInterface;
  111. public function setDeliveryTaxRate(?TaxRateInterface $deliveryTaxRate
  112. ): OrderShopModel;
  113. public function getReference(): ?string;
  114. public function setReference(?string $reference): OrderShopModel;
  115. public function getMainOrderShop(): ?self;
  116. public function setMainOrderShop(?OrderShopModel $mainOrderShop): OrderShopModel;
  117. /**
  118. * @return Collection|OrderShopInterface[]
  119. */
  120. public function getComplementaryOrderShops(): Collection;
  121. public function addComplementaryOrderShop(OrderShopModel $complementaryOrderShop
  122. ): OrderShopModel;
  123. public function removeComplementaryOrderShop(OrderShopModel $complementaryOrderShop
  124. ): OrderShopModel;
  125. public function getDeclineComplementaryOrderShop(): ?bool;
  126. public function setDeclineComplementaryOrderShop(?bool $declineComplementaryOrderShop
  127. ): OrderShopModel;
  128. public function getOrderAllowByAdmin(): ?bool;
  129. public function setOrderAllowByAdmin(?bool $orderAllowByAdmin): OrderShopModel;
  130. public function getHasReach(): ?int;
  131. public function setHasReach(?int $hasReach): OrderShopModel;
  132. public function getStatTotal(): ?float;
  133. public function setStatTotal(?float $statTotal): OrderShopModel;
  134. public function getStatTotalWithTax(): ?float;
  135. public function setStatTotalWithTax(?float $statTotalWithTax): OrderShopModel;
  136. public function getStatTotalOrderProductsWithReductions(): ?float;
  137. public function setStatTotalOrderProductsWithReductions(?float $statTotalOrderProductsWithReductions
  138. ): OrderShopModel;
  139. public function getStatTotalOrderProductsWithTaxAndReductions(): ?float;
  140. public function setStatTotalOrderProductsWithTaxAndReductions(?float $statTotalOrderProductsWithTaxAndReductions
  141. ): OrderShopModel;
  142. public function getStatMarginOrderProductsWithReductions(): ?float;
  143. public function setStatMarginOrderProductsWithReductions(?float $statMarginOrderProductsWithReductions
  144. ): OrderShopModel;
  145. public function getStatDeliveryPriceWithReduction(): ?float;
  146. public function setStatDeliveryPriceWithReduction(?float $statDeliveryPriceWithReduction
  147. ): OrderShopModel;
  148. public function getStatDeliveryPriceWithTaxAndReduction(): ?float;
  149. public function setStatDeliveryPriceWithTaxAndReduction(?float $statDeliveryPriceWithTaxAndReduction
  150. ): OrderShopModel;
  151. }