Lines Matching defs:child
170 public function appendChild(Node $child): void
173 $this->lastChild->insertAfter($child);
175 $child->detach();
176 $child->setParent($this);
177 $this->lastChild = $this->firstChild = $child;
182 * Adds $child as the very first child of $this
184 public function prependChild(Node $child): void
187 $this->firstChild->insertBefore($child);
189 $child->detach();
190 $child->setParent($this);
191 $this->lastChild = $this->firstChild = $child;
196 * Detaches all child nodes of given node
251 foreach ($children as $child) {
252 $this->appendChild(clone $child);