Product.php 8.1 KB

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