<?phpnamespace App\Entity;use App\Repository\ProductRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use App\Entity\Wishlist;use App\Entity\ProductWishlist;/** * @ORM\Entity(repositoryClass=ProductRepository::class) */class Product{    /**     * @ORM\Id     * @ORM\GeneratedValue     * @ORM\Column(type="integer")     */    private $id;    /**     * @ORM\OneToMany(targetEntity=ProductWishlist::class, mappedBy="product")     */    private $productWishlists;    /**     * @ORM\Column(type="string", length=255)     */    private $name;        /**     * @ORM\Column(type="string", length=255)     */    private $slug;    /**     * @ORM\Column(type="string", length=255)     */    private $illustration;    /**     * @ORM\Column(type="string", length=255)     */    private $subtitle;    /**     * @ORM\Column(type="text")     */    private $description;    /**     * @ORM\Column(type="float")     */    private $price;    /**     * @ORM\ManyToOne(targetEntity=Category::class)     * @ORM\JoinColumn(name="category_id", referencedColumnName="id")     */    private $category;    public function __construct()    {        $this->productWishlists = new ArrayCollection();    }    public function getId(): ?int    {        return $this->id;    }    public function getName(): ?string    {        return $this->name;    }    public function setName(string $name): self    {        $this->name = $name;        return $this;    }    public function getSlug(): ?string    {        return $this->slug;    }    public function setSlug(string $slug): self    {        $this->slug = $slug;        return $this;    }    public function getIllustration(): ?string    {        return $this->illustration;    }    public function setIllustration(string $illustration): self    {        $this->illustration = $illustration;        return $this;    }    public function getSubtitle(): ?string    {        return $this->subtitle;    }    public function setSubtitle(string $subtitle): self    {        $this->subtitle = $subtitle;        return $this;    }    public function getDescription(): ?string    {        return $this->description;    }    public function setDescription(string $description): self    {        $this->description = $description;        return $this;    }    public function getPrice(): ?float    {        return $this->price;    }    public function setPrice(float $price): self    {        $this->price = $price;        return $this;    }    public function getCategory(): ?Category    {        return $this->category;    }    public function setCategory(?Category $category): self    {        $this->category = $category;        return $this;    }    /**     * @return Collection|ProductWishlist[]     */    public function getProductWishlists(): Collection    {        return $this->productWishlists;    }}