Copied!
CloneableFinalInstantiable
Constants
public League\CommonMark\Extension\Table\TableCell::ALIGN_CENTER = 'center'
public League\CommonMark\Extension\Table\TableCell::ALIGN_LEFT = 'left'
public League\CommonMark\Extension\Table\TableCell::ALIGN_RIGHT = 'right'
public League\CommonMark\Extension\Table\TableCell::TYPE_DATA = 'data'
public League\CommonMark\Extension\Table\TableCell::TYPE_HEADER = 'header'
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(string $type = 'data'self::TYPE_DATA, ?string $align = NULL)
 
  • psalm-param self::TYPE_* $type
  • psalm-param self::ALIGN_*|null $align
  • phpstan-param self::TYPE_* $type
  • phpstan-param self::ALIGN_*|null $align
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 getAlign() : ?string
 
  • psalm-return self::ALIGN_*|null
  • phpstan-return self::ALIGN_*|null
public League\CommonMark\Node\Node::getDepth() : int
public League\CommonMark\Node\Block\AbstractBlock::getEndLine() : ?int
public League\CommonMark\Node\Block\AbstractBlock::getStartLine() : ?int
public getType() : string
 
  • 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 setAlign(?string $align) : void
 
  • psalm-param self::ALIGN_*|null $align
  • phpstan-param self::ALIGN_*|null $align
public League\CommonMark\Node\Block\AbstractBlock::setEndLine(?int $endLine) : void
public League\CommonMark\Node\Block\AbstractBlock::setStartLine(?int $startLine) : void
public setType(string $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 $align = NULL
 
  • psalm-var self::ALIGN_*|null
  • phpstan-var self::ALIGN_*|null
  • psalm-readonly-allow-private-mutation
private string $type = 'data'
 
  • psalm-var self::TYPE_*
  • phpstan-var self::TYPE_*
  • 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