Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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