CloneableFinalInstantiable
Constants
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_1_CODE_CONTAINER = 1
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_2_COMMENT = 2
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_3 = 3
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_4 = 4
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_5_CDATA = 5
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_6_BLOCK_ELEMENT = 6
public League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_7_MISC_ELEMENT = 7
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(int $type)
 
  • psalm-param self::TYPE_* $type
  • phpstan-param self::TYPE_* $type
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 getLiteral() : string
public League\CommonMark\Node\Block\AbstractBlock::getStartLine() : ?int
public getType() : int
 
  • psalm-return self::TYPE_*
  • phpstan-return self::TYPE_*
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 setLiteral(string $literal) : void
public League\CommonMark\Node\Block\AbstractBlock::setStartLine(?int $startLine) : void
public setType(int $type) : void
 
  • psalm-param self::TYPE_* $type
  • phpstan-param self::TYPE_* $type
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
Properties
private string $literal = ''
private int $type
 
  • psalm-var self::TYPE_* $type
  • phpstan-var self::TYPE_* $type
Methods
public static League\CommonMark\Node\Node::assertInstanceOf(League\CommonMark\Node\Node $node) : void
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration