SectionEntryNode
extends EntryNode
in package
FinalYes
Table of Contents
Properties
- $classes : array<string|int, string>
- $options : array<string, scalar|null>
- $value : TValue
- $children : array<string|int, SectionEntryNode>
- $parent : DocumentEntryNode|null
- $title : TitleNode
Methods
- __construct() : mixed
- addChild() : void
- findSectionEntry() : SectionEntryNode|null
- getChildren() : array<string|int, SectionEntryNode>
- getClasses() : array<string|int, string>
- getClassesString() : string
- getId() : string
- getOption() : mixed
- getOptions() : array<string, scalar|null>
- getParent() : DocumentEntryNode|null
- getTitle() : TitleNode
- getValue() : TValue
- hasOption() : bool
- setClasses() : void
- Normalizes class names following the rules of identifier-normalization
- setParent() : void
- setValue() : void
- withKeepExistingOptions() : static
- Adds $options as default options without overriding any options already set.
- withOptions() : static
Properties
$classes
protected
array<string|int, string>
$classes
= []
$options
protected
array<string, scalar|null>
$options
= []
$value
protected
TValue
$value
$children
private
array<string|int, SectionEntryNode>
$children
= []
$parent
private
DocumentEntryNode|null
$parent
= null
$title read-only
private
TitleNode
$title
Methods
__construct()
public
__construct(TitleNode $title) : mixed
Parameters
- $title : TitleNode
addChild()
public
addChild(SectionEntryNode $child) : void
Parameters
- $child : SectionEntryNode
findSectionEntry()
public
findSectionEntry(SectionNode $sectionNode) : SectionEntryNode|null
Parameters
- $sectionNode : SectionNode
Return values
SectionEntryNode|nullgetChildren()
public
getChildren() : array<string|int, SectionEntryNode>
Return values
array<string|int, SectionEntryNode>getClasses()
public
getClasses() : array<string|int, string>
Return values
array<string|int, string>getClassesString()
public
getClassesString() : string
Return values
stringgetId()
public
getId() : string
Return values
stringgetOption()
public
getOption(string $name[, TType|null $default = null ]) : mixed
Parameters
- $name : string
- $default : TType|null = null
Tags
getOptions()
public
getOptions() : array<string, scalar|null>
Return values
array<string, scalar|null>getParent()
public
getParent() : DocumentEntryNode|null
Return values
DocumentEntryNode|nullgetTitle()
public
getTitle() : TitleNode
Return values
TitleNodegetValue()
public
getValue() : TValue
Return values
TValuehasOption()
public
hasOption(string $name) : bool
Parameters
- $name : string
Return values
boolsetClasses()
Normalizes class names following the rules of identifier-normalization
public
setClasses(array<string|int, string> $classes) : void
Parameters
- $classes : array<string|int, string>
Tags
setParent()
public
setParent(DocumentEntryNode|null $parent) : void
Parameters
- $parent : DocumentEntryNode|null
setValue()
public
setValue(TValue $value) : void
Parameters
- $value : TValue
withKeepExistingOptions()
Adds $options as default options without overriding any options already set.
public
withKeepExistingOptions(array<string, scalar|null> $options) : static
Parameters
- $options : array<string, scalar|null>
Return values
staticwithOptions()
public
withOptions(array<string, scalar|null> $options) : static
Parameters
- $options : array<string, scalar|null>