/** * {@inheritdoc} */ public function addBrand(DrugInterface $brand) { if (!$this->hasBrand($brand)) { $brand->setGeneric($this); $this->brands->add($brand); } return $this; }
/** * {@inheritdoc} */ public function addDrug(DrugInterface $drug) { if (!$this->hasDrug($drug)) { $drug->addGroup($this); $this->drugs->add($drug); } return $this; }