示例#1
0
 public final function detach()
 {
     $this->checkParentRelation($this->parentNode);
     $this->parentNode->children()->remove($this);
     return $this;
 }
示例#2
0
 private function checkUnlocked(ChildNodeInterface $child)
 {
     if ($child->isLocked()) {
         throw new LockedNodeException();
     }
 }