public addCategory ( Elcodi\Component\Product\Entity\Interfaces\CategoryInterface $category ) | ||
$category | Elcodi\Component\Product\Entity\Interfaces\CategoryInterface | Category |
public function addCategory(CategoryInterface $category)
{
if (!$this->categories->contains($category)) {
$this->categories->add($category);
}
return $this;
}