src/Entity/System/ProductDate.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * ProductDate
  6. *
  7. * @ORM\Table(name="ps_product_date",
  8. * uniqueConstraints={
  9. *
  10. * @ORM\UniqueConstraint(name="uk_product_product_attribute", columns={"id_product", "id_product_attribute"})
  11. * },
  12. * indexes={
  13. *
  14. * @ORM\Index(name="ps_product_date_date_api_publication_index", columns={"date_api_publication"})
  15. * }
  16. * )
  17. *
  18. * @ORM\Entity(repositoryClass="App\Repository\System\ProductDateRepository")
  19. */
  20. class ProductDate
  21. {
  22. /**
  23. * @var int
  24. *
  25. * @ORM\Id
  26. *
  27. * @ORM\GeneratedValue(strategy="AUTO")
  28. *
  29. * @ORM\Column(type="integer")
  30. */
  31. private $id;
  32. /**
  33. * @var Product
  34. *
  35. * @ORM\ManyToOne(targetEntity="App\Entity\System\Product", inversedBy="productDates")
  36. *
  37. * @ORM\JoinColumn(name="id_product", referencedColumnName="id_product", nullable=false)
  38. */
  39. private $product;
  40. /**
  41. * @var ProductAttribute|null
  42. *
  43. * @ORM\OneToOne (targetEntity="App\Entity\System\ProductAttribute", inversedBy="productDate")
  44. *
  45. * @ORM\JoinColumn(name="id_product_attribute", referencedColumnName="id_product_attribute", nullable=true)
  46. */
  47. private $productAttribute;
  48. /**
  49. * @var \DateTime|null
  50. *
  51. * @ORM\Column(name="date_upd", type="datetime", nullable=true)
  52. */
  53. private $dateUpd;
  54. /**
  55. * @var \DateTime|null
  56. *
  57. * @ORM\Column(name="date_description", type="datetime", nullable=true)
  58. */
  59. private $dateDescription;
  60. /**
  61. * @var \DateTime|null
  62. *
  63. * @ORM\Column(name="date_stock", type="datetime", nullable=true)
  64. */
  65. private $dateStock;
  66. /**
  67. * @var \DateTime|null
  68. *
  69. * @ORM\Column(name="date_images", type="datetime", nullable=true)
  70. */
  71. private $dateImages;
  72. /**
  73. * @var \DateTime|null
  74. *
  75. * @ORM\Column(name="date_api_publication", type="datetime", nullable=true)
  76. */
  77. private $dateApiPublication;
  78. /**
  79. * @deprecated
  80. *
  81. * @var \DateTime|null
  82. *
  83. * @ORM\Column(type="datetime", nullable=true)
  84. */
  85. private $dateNewStock;
  86. /**
  87. * @deprecated
  88. *
  89. * @var \DateTime|null
  90. *
  91. * @ORM\Column(type="datetime", nullable=true)
  92. */
  93. private $dateNext;
  94. /**
  95. * @deprecated
  96. *
  97. * @var \DateTime|null
  98. *
  99. * @ORM\Column(type="datetime", nullable=true)
  100. */
  101. private $dateProperties;
  102. /**
  103. * @deprecated
  104. *
  105. * @var \DateTime|null
  106. *
  107. * @ORM\Column(type="datetime", nullable=true)
  108. */
  109. private $dateCategories;
  110. public function getProduct(): Product
  111. {
  112. return $this->product;
  113. }
  114. /**
  115. * @param Product $product
  116. *
  117. * @return ProductDate
  118. */
  119. public function setProduct(Product $product): ProductDate
  120. {
  121. $this->product = $product;
  122. return $this;
  123. }
  124. /**
  125. * @return ProductAttribute
  126. */
  127. public function getProductAttribute(): ProductAttribute
  128. {
  129. return $this->productAttribute;
  130. }
  131. public function setProductAttribute(?ProductAttribute $productAttribute = null): ProductDate
  132. {
  133. $this->productAttribute = $productAttribute;
  134. return $this;
  135. }
  136. /**
  137. * @return \DateTime|null
  138. */
  139. public function getDateUpd(): ?\DateTime
  140. {
  141. return $this->dateUpd;
  142. }
  143. /**
  144. * @param \DateTime|null $dateUpd
  145. *
  146. * @return ProductDate
  147. */
  148. public function setDateUpd(?\DateTime $dateUpd): ProductDate
  149. {
  150. $this->dateUpd = $dateUpd;
  151. return $this;
  152. }
  153. /**
  154. * @return \DateTime|null
  155. */
  156. public function getDateDescription(): ?\DateTime
  157. {
  158. return $this->dateDescription;
  159. }
  160. /**
  161. * @param \DateTime|null $dateDescription
  162. *
  163. * @return ProductDate
  164. */
  165. public function setDateDescription(?\DateTime $dateDescription): ProductDate
  166. {
  167. $this->dateDescription = $dateDescription;
  168. return $this;
  169. }
  170. public function getDateStock(): ?\DateTime
  171. {
  172. return $this->dateStock;
  173. }
  174. public function setDateStock(?\DateTime $dateStock): ProductDate
  175. {
  176. $this->dateStock = $dateStock;
  177. return $this;
  178. }
  179. public function getDateImages(): ?\DateTime
  180. {
  181. return $this->dateImages;
  182. }
  183. public function setDateImages(?\DateTime $dateImages): ProductDate
  184. {
  185. $this->dateImages = $dateImages;
  186. return $this;
  187. }
  188. public function getDateApiPublication(): ?\DateTime
  189. {
  190. return $this->dateApiPublication;
  191. }
  192. public function setDateApiPublication(?\DateTime $dateApiPublication): ProductDate
  193. {
  194. $this->dateApiPublication = $dateApiPublication;
  195. return $this;
  196. }
  197. public function getDateNewStock(): ?\DateTime
  198. {
  199. return $this->dateNewStock;
  200. }
  201. public function setDateNewStock(?\DateTime $dateNewStock): ProductDate
  202. {
  203. $this->dateNewStock = $dateNewStock;
  204. return $this;
  205. }
  206. public function getDateNext(): ?\DateTime
  207. {
  208. return $this->dateNext;
  209. }
  210. public function setDateNext(?\DateTime $dateNext): ProductDate
  211. {
  212. $this->dateNext = $dateNext;
  213. return $this;
  214. }
  215. public function getDateProperties(): ?\DateTime
  216. {
  217. return $this->dateProperties;
  218. }
  219. public function setDateProperties(?\DateTime $dateProperties): ProductDate
  220. {
  221. $this->dateProperties = $dateProperties;
  222. return $this;
  223. }
  224. public function getId(): int
  225. {
  226. return $this->id;
  227. }
  228. public function setId(int $id): ProductDate
  229. {
  230. $this->id = $id;
  231. return $this;
  232. }
  233. public function getDateCategories(): ?\DateTime
  234. {
  235. return $this->dateCategories;
  236. }
  237. public function setDateCategories(?\DateTime $dateCategories): ProductDate
  238. {
  239. $this->dateCategories = $dateCategories;
  240. return $this;
  241. }
  242. }