コード例 #1
0
ファイル: ChildNodeTrait.php プロジェクト: nayjest/tree
 public final function detach()
 {
     $this->checkParentRelation($this->parentNode);
     $this->parentNode->children()->remove($this);
     return $this;
 }
コード例 #2
0
ファイル: NodeCollection.php プロジェクト: nayjest/tree
 private function checkUnlocked(ChildNodeInterface $child)
 {
     if ($child->isLocked()) {
         throw new LockedNodeException();
     }
 }