Guides

SectionCreationTransformer
in package
implements NodeTransformer

FinalYes

Table of Contents

Interfaces

NodeTransformer

Properties

$firstLevel  : int
$sectionStack  : array<string|int, SectionNode>

Methods

enterNode()  : T
getPriority()  : int
The higher the priority the earlier the NodeTransformer is executed.
leaveNode()  : T|null
supports()  : bool
pushNewSectionToStack()  : void
Pushes the new section to the stack.

Properties

Methods

getPriority()

The higher the priority the earlier the NodeTransformer is executed.

public getPriority() : int
Return values
int

pushNewSectionToStack()

Pushes the new section to the stack.

private pushNewSectionToStack(SectionNode $newSection) : void

The stack is used to track the current level of nodes and adding child nodes to the section. As not all documentation formats are using the correct level of title nodes we need to track the level of the first title node to determine the correct level of the section.

Parameters
$newSection : SectionNode

        
On this page

Search results