Copied!
CloneableFinalInstantiable
Properties
public Dflydev\DotAccessData\Data League\CommonMark\Node\Node::$data
 
  • psalm-readonly
Methods
public League\CommonMark\Node\Node::__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 League\CommonMark\Node\Node::__construct()
public League\CommonMark\Node\Node::appendChild(League\CommonMark\Node\Node $child) : void
public static League\CommonMark\Node\Node::assertInstanceOf(League\CommonMark\Node\Node $node) : void
public League\CommonMark\Node\Node::children() : iterable
 
  • return \Node[]
public League\CommonMark\Node\Node::detach() : void
public League\CommonMark\Node\Node::detachChildren() : void
 

Detaches all child nodes of given node

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

Inserts the $sibling node after $this

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

Inserts the $sibling node before $this

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

Adds $child as the very first child of $this

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

Replace all children of given node with collection of another

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