src/Entity/ClickAndCollectItem.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ClickAndCollectItemRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ClickAndCollectItemRepository::class)
  7. * @ORM\EntityListeners({
  8. * "App\Listener\EntityListener",
  9. * "App\Listener\ClickAndCollectListener"
  10. * })
  11. */
  12. class ClickAndCollectItem
  13. {
  14. /**
  15. * @ORM\Id()
  16. * @ORM\GeneratedValue()
  17. * @ORM\Column(type="integer")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=ClickAndCollect::class, inversedBy="items")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $collect;
  25. /**
  26. * @ORM\ManyToOne(targetEntity=Product::class)
  27. * @ORM\JoinColumn(nullable=false)
  28. */
  29. private $product;
  30. /**
  31. * @ORM\ManyToOne(targetEntity=Variant::class)
  32. * @ORM\JoinColumn(nullable=false)
  33. */
  34. private $variant;
  35. /**
  36. * @ORM\ManyToOne(targetEntity=Dealer::class, inversedBy="clickAndCollectItems")
  37. * @ORM\JoinColumn(nullable=false)
  38. */
  39. private $dealer;
  40. /**
  41. * @ORM\Column(type="string", length=190)
  42. */
  43. private $name;
  44. /**
  45. * @ORM\Column(type="float")
  46. */
  47. private $price = 0;
  48. /**
  49. * @ORM\Column(type="float")
  50. */
  51. private $priceNoTax = 0;
  52. /**
  53. * @ORM\Column(type="float")
  54. */
  55. private $tax = 0;
  56. /**
  57. * @ORM\Column(type="string", length=3)
  58. */
  59. private $currency;
  60. /**
  61. * @ORM\Column(type="integer")
  62. */
  63. private $count = 1;
  64. /**
  65. * @ORM\Column(type="integer")
  66. */
  67. private $status = 0;
  68. /**
  69. * @ORM\Column(type="datetime")
  70. */
  71. private $createts;
  72. /**
  73. * @ORM\Column(type="datetime", nullable=true)
  74. */
  75. private $editts;
  76. /**
  77. * @ORM\Column(type="datetime", nullable=true)
  78. */
  79. private $stornots;
  80. /**
  81. * @ORM\Column(type="datetime", nullable=true)
  82. */
  83. private $pickedUpts;
  84. /**
  85. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  86. */
  87. private $editUser;
  88. /**
  89. * @ORM\Column(type="float")
  90. */
  91. private $course;
  92. /**
  93. * @ORM\Column(type="text", nullable=true)
  94. */
  95. private $note;
  96. public function getId(): ?int
  97. {
  98. return $this->id;
  99. }
  100. public function getCollect(): ?ClickAndCollect
  101. {
  102. return $this->collect;
  103. }
  104. public function setCollect(?ClickAndCollect $collect): self
  105. {
  106. $this->collect = $collect;
  107. return $this;
  108. }
  109. public function getProduct(): ?Product
  110. {
  111. return $this->product;
  112. }
  113. public function setProduct(?Product $product): self
  114. {
  115. $this->product = $product;
  116. return $this;
  117. }
  118. public function getVariant(): ?Variant
  119. {
  120. return $this->variant;
  121. }
  122. public function setVariant(?Variant $variant): self
  123. {
  124. $this->variant = $variant;
  125. return $this;
  126. }
  127. public function getDealer(): ?Dealer
  128. {
  129. return $this->dealer;
  130. }
  131. public function setDealer(?Dealer $dealer): self
  132. {
  133. $this->dealer = $dealer;
  134. return $this;
  135. }
  136. public function getName(): ?string
  137. {
  138. return $this->name;
  139. }
  140. public function setName(string $name): self
  141. {
  142. $this->name = $name;
  143. return $this;
  144. }
  145. public function getPrice(): ?float
  146. {
  147. return $this->price;
  148. }
  149. public function setPrice(float $price): self
  150. {
  151. $this->price = $price;
  152. return $this;
  153. }
  154. public function getPriceNoTax(): ?float
  155. {
  156. return $this->priceNoTax;
  157. }
  158. public function setPriceNoTax(float $priceNoTax): self
  159. {
  160. $this->priceNoTax = $priceNoTax;
  161. return $this;
  162. }
  163. public function getTax(): ?float
  164. {
  165. return $this->tax;
  166. }
  167. public function setTax(float $tax): self
  168. {
  169. $this->tax = $tax;
  170. return $this;
  171. }
  172. public function getCurrency(): ?string
  173. {
  174. return $this->currency;
  175. }
  176. public function setCurrency(string $currency): self
  177. {
  178. $this->currency = $currency;
  179. return $this;
  180. }
  181. public function getCount(): ?int
  182. {
  183. return $this->count;
  184. }
  185. public function setCount(int $count): self
  186. {
  187. $this->count = $count;
  188. return $this;
  189. }
  190. public function getStatus(): ?int
  191. {
  192. return $this->status;
  193. }
  194. public function setStatus(?int $status): self
  195. {
  196. $this->status = $status;
  197. return $this;
  198. }
  199. public function getCreatets(): ?\DateTimeInterface
  200. {
  201. return $this->createts;
  202. }
  203. public function setCreatets(\DateTimeInterface $createts): self
  204. {
  205. $this->createts = $createts;
  206. return $this;
  207. }
  208. public function getEditts(): ?\DateTimeInterface
  209. {
  210. return $this->editts;
  211. }
  212. public function setEditts(?\DateTimeInterface $editts): self
  213. {
  214. $this->editts = $editts;
  215. return $this;
  216. }
  217. public function getEditUser(): ?User
  218. {
  219. return $this->editUser;
  220. }
  221. public function setEditUser(?User $editUser): self
  222. {
  223. $this->editUser = $editUser;
  224. return $this;
  225. }
  226. /**
  227. * Get Course
  228. *
  229. * @return mixed
  230. */
  231. public function getCourse()
  232. {
  233. return $this->course;
  234. }
  235. /**
  236. * Set Course
  237. *
  238. * @param mixed $course
  239. */
  240. public function setCourse( $course )
  241. {
  242. $this->course = $course;
  243. }
  244. /**
  245. * Get Note
  246. *
  247. * @return mixed
  248. */
  249. public function getNote()
  250. {
  251. return $this->note;
  252. }
  253. /**
  254. * Set Note
  255. *
  256. * @param mixed $note
  257. */
  258. public function setNote( $note )
  259. {
  260. $this->note = $note;
  261. }
  262. /**
  263. * Get PickedUpts
  264. *
  265. * @return mixed
  266. */
  267. public function getPickedUpts()
  268. {
  269. return $this->pickedUpts;
  270. }
  271. /**
  272. * Set PickedUpts
  273. *
  274. * @param mixed $pickedUpts
  275. */
  276. public function setPickedUpts( $pickedUpts )
  277. {
  278. $this->pickedUpts = $pickedUpts;
  279. }
  280. /**
  281. * Get Stornots
  282. *
  283. * @return mixed
  284. */
  285. public function getStornots()
  286. {
  287. return $this->stornots;
  288. }
  289. /**
  290. * Set Stornots
  291. *
  292. * @param mixed $stornots
  293. */
  294. public function setStornots( $stornots )
  295. {
  296. $this->stornots = $stornots;
  297. }
  298. }