Product.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Awin;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Produit / Évènement pour le portail fourni par le partenaire Awin.
  8. */
  9. #[ApiResource(operations: [])]
  10. #[ORM\Entity]
  11. #[ORM\Table(name: 'AwinProduct')]
  12. #[ORM\Index(name: 'name_idx', columns: ['name'])]
  13. #[ORM\Index(name: 'slug_idx', columns: ['slug'])]
  14. class Product
  15. {
  16. #[ORM\Id]
  17. #[ORM\Column]
  18. #[ORM\GeneratedValue]
  19. private int $id;
  20. #[ORM\Column]
  21. protected mixed $slug;
  22. #[ORM\Column]
  23. protected mixed $name;
  24. #[ORM\Column(length: 255, options: ['nullable' => true])]
  25. protected string $description;
  26. #[ORM\Column]
  27. protected mixed $categoryCode;
  28. #[ORM\Column]
  29. protected mixed $subCategory;
  30. /**
  31. * @var array<string>
  32. */
  33. #[ORM\Column(type: 'json', options: ['nullable' => true])]
  34. protected array $categories;
  35. #[ORM\Column]
  36. protected mixed $datetimeStart;
  37. #[ORM\Column]
  38. protected mixed $datetimeEnd;
  39. /**
  40. * @var array<string>
  41. */
  42. #[ORM\Column(type: 'json', options: ['nullable' => true])]
  43. protected array $meetingSchedule;
  44. #[ORM\Column]
  45. protected mixed $placeCode;
  46. #[ORM\Column]
  47. protected mixed $place;
  48. #[ORM\Column]
  49. protected mixed $streetAddress;
  50. #[ORM\Column]
  51. protected mixed $postalCode;
  52. #[ORM\Column]
  53. protected mixed $city;
  54. #[ORM\Column]
  55. protected mixed $country;
  56. #[ORM\Column]
  57. protected mixed $latitude;
  58. #[ORM\Column]
  59. protected mixed $longitude;
  60. #[ORM\Column]
  61. protected mixed $mediumimage;
  62. #[ORM\Column]
  63. protected mixed $largeimage;
  64. #[ORM\Column(length: 255, options: ['nullable' => true])]
  65. protected string $deepLink;
  66. #[ORM\Column]
  67. protected mixed $priceMini;
  68. #[ORM\Column]
  69. protected mixed $priceMaxi;
  70. #[ORM\Column(length: 255, nullable: true)]
  71. protected ?string $artists;
  72. #[ORM\Column(length: 255, nullable: true)]
  73. protected ?string $uuid;
  74. #[ORM\Column(type: 'date', nullable: true)]
  75. protected ?\DateTimeInterface $createDate;
  76. #[ORM\Column(type: 'date', nullable: true)]
  77. protected ?\DateTimeInterface $updateDate;
  78. public function getId(): int
  79. {
  80. return $this->id;
  81. }
  82. public function setId(int $id): self
  83. {
  84. $this->id = $id;
  85. return $this;
  86. }
  87. public function getSlug(): mixed
  88. {
  89. return $this->slug;
  90. }
  91. public function setSlug(mixed $slug): self
  92. {
  93. $this->slug = $slug;
  94. return $this;
  95. }
  96. public function getName(): mixed
  97. {
  98. return $this->name;
  99. }
  100. public function setName(mixed $name): self
  101. {
  102. $this->name = $name;
  103. return $this;
  104. }
  105. public function getDescription(): string
  106. {
  107. return $this->description;
  108. }
  109. public function setDescription(string $description): self
  110. {
  111. $this->description = $description;
  112. return $this;
  113. }
  114. public function getCategoryCode(): mixed
  115. {
  116. return $this->categoryCode;
  117. }
  118. public function setCategoryCode(mixed $categoryCode): self
  119. {
  120. $this->categoryCode = $categoryCode;
  121. return $this;
  122. }
  123. public function getSubCategory(): mixed
  124. {
  125. return $this->subCategory;
  126. }
  127. public function setSubCategory(mixed $subCategory): self
  128. {
  129. $this->subCategory = $subCategory;
  130. return $this;
  131. }
  132. /**
  133. * @return string[]
  134. */
  135. public function getCategories(): array
  136. {
  137. return $this->categories;
  138. }
  139. /**
  140. * @param string[] $categories
  141. */
  142. public function setCategories(array $categories): self
  143. {
  144. $this->categories = $categories;
  145. return $this;
  146. }
  147. public function getDatetimeStart(): mixed
  148. {
  149. return $this->datetimeStart;
  150. }
  151. public function setDatetimeStart(mixed $datetimeStart): self
  152. {
  153. $this->datetimeStart = $datetimeStart;
  154. return $this;
  155. }
  156. public function getDatetimeEnd(): mixed
  157. {
  158. return $this->datetimeEnd;
  159. }
  160. public function setDatetimeEnd(mixed $datetimeEnd): self
  161. {
  162. $this->datetimeEnd = $datetimeEnd;
  163. return $this;
  164. }
  165. /**
  166. * @return string[]
  167. */
  168. public function getMeetingSchedule(): array
  169. {
  170. return $this->meetingSchedule;
  171. }
  172. /**
  173. * @param array<string> $meetingSchedule
  174. *
  175. * @return $this
  176. */
  177. public function setMeetingSchedule(array $meetingSchedule): self
  178. {
  179. $this->meetingSchedule = $meetingSchedule;
  180. return $this;
  181. }
  182. public function getPlaceCode(): mixed
  183. {
  184. return $this->placeCode;
  185. }
  186. public function setPlaceCode(mixed $placeCode): self
  187. {
  188. $this->placeCode = $placeCode;
  189. return $this;
  190. }
  191. public function getPlace(): mixed
  192. {
  193. return $this->place;
  194. }
  195. public function setPlace(mixed $place): self
  196. {
  197. $this->place = $place;
  198. return $this;
  199. }
  200. public function getStreetAddress(): mixed
  201. {
  202. return $this->streetAddress;
  203. }
  204. public function setStreetAddress(mixed $streetAddress): self
  205. {
  206. $this->streetAddress = $streetAddress;
  207. return $this;
  208. }
  209. public function getPostalCode(): mixed
  210. {
  211. return $this->postalCode;
  212. }
  213. public function setPostalCode(mixed $postalCode): self
  214. {
  215. $this->postalCode = $postalCode;
  216. return $this;
  217. }
  218. public function getCity(): mixed
  219. {
  220. return $this->city;
  221. }
  222. public function setCity(mixed $city): self
  223. {
  224. $this->city = $city;
  225. return $this;
  226. }
  227. public function getCountry(): mixed
  228. {
  229. return $this->country;
  230. }
  231. public function setCountry(mixed $country): self
  232. {
  233. $this->country = $country;
  234. return $this;
  235. }
  236. public function getLatitude(): mixed
  237. {
  238. return $this->latitude;
  239. }
  240. public function setLatitude(mixed $latitude): self
  241. {
  242. $this->latitude = $latitude;
  243. return $this;
  244. }
  245. public function getLongitude(): mixed
  246. {
  247. return $this->longitude;
  248. }
  249. public function setLongitude(mixed $longitude): self
  250. {
  251. $this->longitude = $longitude;
  252. return $this;
  253. }
  254. public function getMediumimage(): mixed
  255. {
  256. return $this->mediumimage;
  257. }
  258. public function setMediumimage(mixed $mediumimage): self
  259. {
  260. $this->mediumimage = $mediumimage;
  261. return $this;
  262. }
  263. public function getLargeimage(): mixed
  264. {
  265. return $this->largeimage;
  266. }
  267. public function setLargeimage(mixed $largeimage): self
  268. {
  269. $this->largeimage = $largeimage;
  270. return $this;
  271. }
  272. public function getDeepLink(): string
  273. {
  274. return $this->deepLink;
  275. }
  276. public function setDeepLink(string $deepLink): self
  277. {
  278. $this->deepLink = $deepLink;
  279. return $this;
  280. }
  281. public function getPriceMini(): mixed
  282. {
  283. return $this->priceMini;
  284. }
  285. public function setPriceMini(mixed $priceMini): self
  286. {
  287. $this->priceMini = $priceMini;
  288. return $this;
  289. }
  290. public function getPriceMaxi(): mixed
  291. {
  292. return $this->priceMaxi;
  293. }
  294. public function setPriceMaxi(mixed $priceMaxi): self
  295. {
  296. $this->priceMaxi = $priceMaxi;
  297. return $this;
  298. }
  299. public function getArtists(): string
  300. {
  301. return $this->artists;
  302. }
  303. public function setArtists(string $artists): self
  304. {
  305. $this->artists = $artists;
  306. return $this;
  307. }
  308. public function getUuid(): string
  309. {
  310. return $this->uuid;
  311. }
  312. public function setUuid(string $uuid): self
  313. {
  314. $this->uuid = $uuid;
  315. return $this;
  316. }
  317. public function getCreateDate(): \DateTimeInterface
  318. {
  319. return $this->createDate;
  320. }
  321. public function setCreateDate(\DateTimeInterface $createDate): self
  322. {
  323. $this->createDate = $createDate;
  324. return $this;
  325. }
  326. public function getUpdateDate(): \DateTimeInterface
  327. {
  328. return $this->updateDate;
  329. }
  330. public function setUpdateDate(\DateTimeInterface $updateDate): self
  331. {
  332. $this->updateDate = $updateDate;
  333. return $this;
  334. }
  335. }