/** * Remove children * * @param Publisher $child * @return Publisher */ public function removeChild(Publisher $child) { if ($this->children->contains($child)) { $this->children->removeElement($child); $child->setParent(null); } return $this; }
/** * @param Publisher $publisher * @return $this */ public function removePublisher(Publisher $publisher) { $this->publishers->remove($publisher); return $this; }
/** * Remove children * * @param Publisher $children */ public function removeChild(Publisher $children) { $this->children->removeElement($children); }