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
  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. /**
  132. * @param ProductAttribute $productAttribute
  133. *
  134. * @return ProductDate
  135. */
  136. public function setProductAttribute(ProductAttribute $productAttribute): ProductDate
  137. {
  138. $this->productAttribute = $productAttribute;
  139. return $this;
  140. }
  141. /**
  142. * @return \DateTime|null
  143. */
  144. public function getDateUpd(): ?\DateTime
  145. {
  146. return $this->dateUpd;
  147. }
  148. /**
  149. * @param \DateTime|null $dateUpd
  150. *
  151. * @return ProductDate
  152. */
  153. public function setDateUpd(?\DateTime $dateUpd): ProductDate
  154. {
  155. $this->dateUpd = $dateUpd;
  156. return $this;
  157. }
  158. /**
  159. * @return \DateTime|null
  160. */
  161. public function getDateDescription(): ?\DateTime
  162. {
  163. return $this->dateDescription;
  164. }
  165. /**
  166. * @param \DateTime|null $dateDescription
  167. *
  168. * @return ProductDate
  169. */
  170. public function setDateDescription(?\DateTime $dateDescription): ProductDate
  171. {
  172. $this->dateDescription = $dateDescription;
  173. return $this;
  174. }
  175. public function getDateStock(): ?\DateTime
  176. {
  177. return $this->dateStock;
  178. }
  179. public function setDateStock(?\DateTime $dateStock): ProductDate
  180. {
  181. $this->dateStock = $dateStock;
  182. return $this;
  183. }
  184. public function getDateImages(): ?\DateTime
  185. {
  186. return $this->dateImages;
  187. }
  188. public function setDateImages(?\DateTime $dateImages): ProductDate
  189. {
  190. $this->dateImages = $dateImages;
  191. return $this;
  192. }
  193. public function getDateApiPublication(): ?\DateTime
  194. {
  195. return $this->dateApiPublication;
  196. }
  197. public function setDateApiPublication(?\DateTime $dateApiPublication): ProductDate
  198. {
  199. $this->dateApiPublication = $dateApiPublication;
  200. return $this;
  201. }
  202. public function getDateNewStock(): ?\DateTime
  203. {
  204. return $this->dateNewStock;
  205. }
  206. public function setDateNewStock(?\DateTime $dateNewStock): ProductDate
  207. {
  208. $this->dateNewStock = $dateNewStock;
  209. return $this;
  210. }
  211. public function getDateNext(): ?\DateTime
  212. {
  213. return $this->dateNext;
  214. }
  215. public function setDateNext(?\DateTime $dateNext): ProductDate
  216. {
  217. $this->dateNext = $dateNext;
  218. return $this;
  219. }
  220. public function getDateProperties(): ?\DateTime
  221. {
  222. return $this->dateProperties;
  223. }
  224. public function setDateProperties(?\DateTime $dateProperties): ProductDate
  225. {
  226. $this->dateProperties = $dateProperties;
  227. return $this;
  228. }
  229. public function getId(): int
  230. {
  231. return $this->id;
  232. }
  233. public function setId(int $id): ProductDate
  234. {
  235. $this->id = $id;
  236. return $this;
  237. }
  238. public function getDateCategories(): ?\DateTime
  239. {
  240. return $this->dateCategories;
  241. }
  242. public function setDateCategories(?\DateTime $dateCategories): ProductDate
  243. {
  244. $this->dateCategories = $dateCategories;
  245. return $this;
  246. }
  247. }