Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * @param  Publisher $publisher
  * @return $this
  */
 public function removePublisher(Publisher $publisher)
 {
     $this->publishers->remove($publisher);
     return $this;
 }
Beispiel #3
0
 /**
  * Remove children
  *
  * @param Publisher $children
  */
 public function removeChild(Publisher $children)
 {
     $this->children->removeElement($children);
 }