ListNode
extends Node
in package
Table of Contents
- $classes : array<string|int, string>
- $lines : array<string|int, array<string|int, mixed>>
- $value : Node|callable|string|null
- $options : array<string|int, mixed>
- __construct() : mixed
- addLine() : void
- Infos contains:
- getClasses() : array<string|int, string>
- getClassesString() : string
- getLines() : array<string|int, array<string|int, mixed>>
- getOption() : mixed|null
- getOptions() : array<string, mixed>
- getValue() : Node|callable|string|null
- getValueString() : string
- setClasses() : void
- setValue() : void
- withOptions() : self
- normalizeLines() : string
Properties
$classes
protected
array<string|int, string>
$classes
= []
$lines
protected
array<string|int, array<string|int, mixed>>
$lines
= []
$value
protected
Node|callable|string|null
$value
$options
private
array<string|int, mixed>
$options
Methods
__construct()
public
__construct([Node|callable|string|null $value = null ]) : mixed
Parameters
- $value : Node|callable|string|null = null
Return values
mixed —addLine()
Infos contains:
public
addLine(array<string|int, mixed> $line) : void
- text: the line text
- depth: the depth in the list level
- prefix: the prefix char (*, - etc.)
- ordered: true of false if the list is ordered
Parameters
- $line : array<string|int, mixed>
Return values
void —getClasses()
public
getClasses() : array<string|int, string>
Return values
array<string|int, string> —getClassesString()
public
getClassesString() : string
Return values
string —getLines()
public
getLines() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —getOption()
public
getOption(string $name[, mixed|null $default = null ]) : mixed|null
Parameters
- $name : string
- $default : mixed|null = null
Return values
mixed|null —getOptions()
public
getOptions() : array<string, mixed>
Return values
array<string, mixed> —getValue()
public
getValue() : Node|callable|string|null
Return values
Node|callable|string|null —getValueString()
public
getValueString() : string
Return values
string —setClasses()
public
setClasses(array<string|int, string> $classes) : void
Parameters
- $classes : array<string|int, string>
Return values
void —setValue()
public
setValue(Node|callable|string|null $value) : void
Parameters
- $value : Node|callable|string|null
Return values
void —withOptions()
public
withOptions(array<string, mixed> $options) : self
Parameters
- $options : array<string, mixed>
Return values
self —normalizeLines()
protected
normalizeLines(array<string|int, string> $lines) : string
Parameters
- $lines : array<string|int, string>