コード例 #1
0
ファイル: Publisher.php プロジェクト: ulakjira/ojs
 /**
  * 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
ファイル: PublisherTypes.php プロジェクト: ojs/ojs
 /**
  * @param  Publisher $publisher
  * @return $this
  */
 public function removePublisher(Publisher $publisher)
 {
     $this->publishers->remove($publisher);
     return $this;
 }
コード例 #3
0
ファイル: Publisher.php プロジェクト: hasantayyar/ojs
 /**
  * Remove children
  *
  * @param Publisher $children
  */
 public function removeChild(Publisher $children)
 {
     $this->children->removeElement($children);
 }