id; } /** * Set name. * * @param string $name * * @return Product */ public function setName( $name ) { $this->name = $name; return $this; } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Set image. * * @param string|null $image * * @return Product */ public function setImage( $image = null ) { $this->image = $image; return $this; } /** * Get image. * * @return string|null */ public function getImage() { return $this->image; } /** * Set category. * * @param \AppBundle\Entity\ProductCategory|null $category * * @return Product */ public function setCategory( \AppBundle\Entity\ProductCategory $category = null ) { $this->category = $category; return $this; } /** * Get category. * * @return \AppBundle\Entity\ProductCategory|null */ public function getCategory() { return $this->category; } /** * Set user. * * @param \AppBundle\Entity\User|null $user * * @return Product */ public function setUser( \AppBundle\Entity\User $user = null ) { $this->user = $user; return $this; } /** * Get user. * * @return \AppBundle\Entity\User|null */ public function getUser() { return $this->user; } }