category; } /** * @return string */ public function getDescription(): string { return $this->description; } /** * @return int */ public function getId(): int { return $this->id; } /** * @return string */ public function getName(): string { return $this->name; } /** * @return float */ public function getPrice(): float { return $this->price; } /** * @param \App\Entity\Category $category * * @return \App\Entity\Product */ public function setCategory(Category $category): self { $this->category = $category; return $this; } /** * @param string $description * * @return \App\Entity\Product */ public function setDescription(string $description): self { $this->description = $description; return $this; } /** * @param string $name * * @return \App\Entity\Product */ public function setName(string $name): self { $this->name = $name; return $this; } /** * @param float $price * * @return \App\Entity\Product */ public function setPrice(float $price): self { $this->price = $price; return $this; } }