| 1 | <?php |
||
| 18 | class WishlistProduct implements WishlistProductInterface |
||
| 19 | { |
||
| 20 | /** @var int */ |
||
| 21 | protected $id; |
||
| 22 | |||
| 23 | /** @var WishlistInterface */ |
||
| 24 | protected $wishlist; |
||
| 25 | |||
| 26 | /** @var ProductInterface */ |
||
| 27 | protected $product; |
||
| 28 | |||
| 29 | /** @var ProductVariantInterface|null */ |
||
| 30 | protected $variant; |
||
| 31 | |||
| 32 | /** @var int */ |
||
| 33 | protected $quantity = 0; |
||
| 34 | |||
| 35 | public function getId(): ?int |
||
| 39 | |||
| 40 | public function getWishlist(): WishlistInterface |
||
| 44 | |||
| 45 | public function setWishlist(WishlistInterface $wishlist): void |
||
| 49 | |||
| 50 | public function getProduct(): ProductInterface |
||
| 54 | |||
| 55 | public function setProduct(ProductInterface $product): void |
||
| 59 | |||
| 60 | public function getVariant(): ?ProductVariantInterface |
||
| 64 | |||
| 65 | public function setVariant(?ProductVariantInterface $variant): void |
||
| 69 | |||
| 70 | public function getQuantity(): int |
||
| 74 | |||
| 75 | public function setQuantity(int $quantity): void |
||
| 79 | } |
||
| 80 |