for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file has been created by developers from BitBag.
* Feel free to contact us once you face any issues or want to start
* another great project.
* You can find more information about us on https://bitbag.shop and write us
* an email on [email protected].
*/
declare(strict_types=1);
namespace BitBag\SyliusWishlistPlugin\Entity;
use Sylius\Component\Core\Model\ProductInterface;
use Sylius\Component\Core\Model\ProductVariantInterface;
class WishlistProduct implements WishlistProductInterface
{
/** @var int */
protected $id;
/** @var WishlistInterface */
protected $wishlist;
/** @var ProductInterface */
protected $product;
/** @var ProductVariantInterface|null */
protected $variant;
protected $quantity = 0;
public function getId(): ?int
return $this->id;
}
public function getWishlist(): WishlistInterface
return $this->wishlist;
public function setWishlist(WishlistInterface $wishlist): void
$this->wishlist = $wishlist;
public function getProduct(): ProductInterface
return $this->product;
public function setProduct(ProductInterface $product): void
$this->product = $product;
public function getVariant(): ?ProductVariantInterface
return $this->variant;
public function setVariant(?ProductVariantInterface $variant): void
$this->variant = $variant;
public function getQuantity(): int
return $this->quantity;
public function setQuantity(int $quantity): void
$this->quantity = $quantity;