AddToCartInput.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace Webkul\BagistoApi\Dto;
  3. use Symfony\Component\Serializer\Annotation\Groups;
  4. class AddToCartInput
  5. {
  6. #[Groups(['mutation'])]
  7. public ?int $product_id = null;
  8. #[Groups(['mutation'])]
  9. public ?int $quantity = null;
  10. #[Groups(['mutation'])]
  11. public ?int $is_buy_now = null;
  12. #[Groups(['mutation'])]
  13. public ?array $options = null;
  14. public function getProduct_id(): ?int
  15. {
  16. return $this->product_id;
  17. }
  18. public function setProduct_id(?int $product_id): void
  19. {
  20. $this->product_id = $product_id;
  21. }
  22. public function getQuantity(): ?int
  23. {
  24. return $this->quantity;
  25. }
  26. public function setQuantity(?int $quantity): void
  27. {
  28. $this->quantity = $quantity;
  29. }
  30. public function getIs_buy_now(): ?int
  31. {
  32. return $this->is_buy_now;
  33. }
  34. public function setIs_buy_now(?int $is_buy_now): void
  35. {
  36. $this->is_buy_now = $is_buy_now;
  37. }
  38. public function getOptions(): ?array
  39. {
  40. return $this->options;
  41. }
  42. public function setOptions(?array $options): void
  43. {
  44. $this->options = $options;
  45. }
  46. }