src/Entity/System/OrderDetailStock.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * OrderDetailStock
  6. *
  7. * @ORM\Table(name="ps_order_detail_stock", indexes={
  8. *
  9. * @ORM\Index(name="ps_orders_detail_stock_id_order_reference_index", columns={"id_order", "product_reference"})
  10. * })
  11. *
  12. * @ORM\Entity(repositoryClass="App\Repository\System\OrderDetailStockRepository")
  13. */
  14. class OrderDetailStock
  15. {
  16. /**
  17. * @ORM\Id()
  18. *
  19. * @var Order
  20. *
  21. * @ORM\ManyToOne(targetEntity="App\Entity\System\Order", inversedBy="orderDetails")
  22. *
  23. * @ORM\JoinColumn(name="id_order", referencedColumnName="id_order")
  24. */
  25. private $order;
  26. /**
  27. * @ORM\Id()
  28. *
  29. * @var string|null
  30. *
  31. * @ORM\Column(type="string", length=30, nullable=true)
  32. */
  33. private $productReference;
  34. /**
  35. * @var int|null
  36. *
  37. * @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
  38. */
  39. private $quantityWarehouse;
  40. /**
  41. * @var int|null
  42. *
  43. * @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
  44. */
  45. private $quantitySupplier;
  46. /**
  47. * @var int|null
  48. *
  49. * @ORM\Column(name="quantity_supplier_3_5", type="integer", length=10, options={"default" : 0}, nullable=true)
  50. */
  51. private $quantitySupplier3To5;
  52. /**
  53. * @var int|null
  54. *
  55. * @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
  56. */
  57. private $quantityComing;
  58. /**
  59. * @var bool
  60. *
  61. * @ORM\Column(type="boolean", length=1, options={"default" : 0}, nullable=true)
  62. */
  63. private $stockReturned;
  64. /**
  65. * @return Order
  66. */
  67. public function getOrder(): Order
  68. {
  69. return $this->order;
  70. }
  71. /**
  72. * @return string|null
  73. */
  74. public function getProductReference(): ?string
  75. {
  76. return $this->productReference;
  77. }
  78. /**
  79. * @return int|null
  80. */
  81. public function getQuantityWarehouse(): ?int
  82. {
  83. return $this->quantityWarehouse;
  84. }
  85. /**
  86. * @return int|null
  87. */
  88. public function getQuantitySupplier(): ?int
  89. {
  90. return $this->quantitySupplier;
  91. }
  92. /**
  93. * @param Order $order
  94. *
  95. * @return OrderDetailStock
  96. */
  97. public function setOrder(Order $order): OrderDetailStock
  98. {
  99. $this->order = $order;
  100. return $this;
  101. }
  102. /**
  103. * @param string|null $productReference
  104. *
  105. * @return OrderDetailStock
  106. */
  107. public function setProductReference(?string $productReference): OrderDetailStock
  108. {
  109. $this->productReference = $productReference;
  110. return $this;
  111. }
  112. /**
  113. * @param int|null $quantityWarehouse
  114. *
  115. * @return OrderDetailStock
  116. */
  117. public function setQuantityWarehouse(?int $quantityWarehouse): OrderDetailStock
  118. {
  119. $this->quantityWarehouse = $quantityWarehouse;
  120. return $this;
  121. }
  122. /**
  123. * @param int|null $quantitySupplier
  124. *
  125. * @return OrderDetailStock
  126. */
  127. public function setQuantitySupplier(?int $quantitySupplier): OrderDetailStock
  128. {
  129. $this->quantitySupplier = $quantitySupplier;
  130. return $this;
  131. }
  132. /**
  133. * @return bool
  134. */
  135. public function isStockReturned(): bool
  136. {
  137. return $this->stockReturned;
  138. }
  139. /**
  140. * @param bool $stockReturned
  141. *
  142. * @return OrderDetailStock
  143. */
  144. public function setStockReturned(bool $stockReturned): OrderDetailStock
  145. {
  146. $this->stockReturned = $stockReturned;
  147. return $this;
  148. }
  149. /**
  150. * @param int|null $quantityComing
  151. */
  152. public function setQuantityComing(?int $quantityComing): void
  153. {
  154. $this->quantityComing = $quantityComing;
  155. }
  156. /**
  157. * @return int|null
  158. */
  159. public function getQuantityComing(): ?int
  160. {
  161. return $this->quantityComing;
  162. }
  163. /**
  164. * @return int|null
  165. */
  166. public function getQuantitySupplier3To5(): ?int
  167. {
  168. return $this->quantitySupplier3To5;
  169. }
  170. /**
  171. * @param int|null $quantitySupplier3To5
  172. */
  173. public function setQuantitySupplier3To5(?int $quantitySupplier3To5): void
  174. {
  175. $this->quantitySupplier3To5 = $quantitySupplier3To5;
  176. }
  177. }