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 __construct(bool $isCompleted)
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\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 isChecked() : bool
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 setChecked(bool $checked) : 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 ?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
Methods
protected League\CommonMark\Node\Node::setParent(?League\CommonMark\Node\Node $node = NULL) : void
Properties
private bool $checked
 
  • psalm-readonly-allow-private-mutation
Methods
public static League\CommonMark\Node\Node::assertInstanceOf(League\CommonMark\Node\Node $node) : void
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration