Copied!
Abstract
Properties
public Dflydev\DotAccessData\Data $data
 
  • psalm-readonly
Methods
public __clone()
 

Clone the current node and its children

WARNING: This is a recursive function and should not be called on deeply-nested node trees!

public __construct()
public appendChild(League\CommonMark\Node\Node $child) : void
public static assertInstanceOf(League\CommonMark\Node\Node $node) : void
public children() : iterable
 
  • return \Node[]
public detach() : void
public detachChildren() : void
 

Detaches all child nodes of given node

public firstChild() : ?League\CommonMark\Node\Node
public getDepth() : int
public hasChildren() : bool
public insertAfter(League\CommonMark\Node\Node $sibling) : void
 

Inserts the $sibling node after $this

public insertBefore(League\CommonMark\Node\Node $sibling) : void
 

Inserts the $sibling node before $this

public iterator(int $flags = 0) : League\CommonMark\Node\NodeIterator
public lastChild() : ?League\CommonMark\Node\Node
public next() : ?League\CommonMark\Node\Node
public parent() : ?League\CommonMark\Node\Node
public prependChild(League\CommonMark\Node\Node $child) : void
 

Adds $child as the very first child of $this

public previous() : ?League\CommonMark\Node\Node
public replaceChildren(iterable $children) : void
 

Replace all children of given node with collection of another

  • param iterable<\Node> $children
public replaceWith(League\CommonMark\Node\Node $replacement) : void
public walker() : League\CommonMark\Node\NodeWalker
Properties
protected int $depth = 0
 
  • psalm-readonly-allow-private-mutation
protected ?League\CommonMark\Node\Node $firstChild = NULL
 
  • psalm-readonly-allow-private-mutation
protected ?League\CommonMark\Node\Node $lastChild = NULL
 
  • psalm-readonly-allow-private-mutation
protected ?League\CommonMark\Node\Node $next = NULL
 
  • psalm-readonly-allow-private-mutation
protected ?League\CommonMark\Node\Node $parent = NULL
 
  • psalm-readonly-allow-private-mutation
protected ?League\CommonMark\Node\Node $previous = NULL
 
  • psalm-readonly-allow-private-mutation
Methods
protected setParent(?League\CommonMark\Node\Node $node = NULL) : void
Methods
public static assertInstanceOf(League\CommonMark\Node\Node $node) : void
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration