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