TableColumn
extends CompoundNode
in package
FinalYes
Table of Contents
Properties
- $classes : array<string|int, string>
- $options : array<string, scalar|null>
- $value : TValue
- $colSpan : int
- $content : string
- $rowSpan : int
Methods
- __construct() : mixed
- addChildNode() : void
- addContent() : void
- getChildren() : array<string|int, TValue>
- getClasses() : array<string|int, string>
- getClassesString() : string
- getColSpan() : int
- getContent() : string
- getOption() : mixed
- getOptions() : array<string, scalar|null>
- getRowSpan() : int
- getValue() : TValue
- hasOption() : bool
- incrementRowSpan() : void
- isCompletelyEmpty() : bool
- Indicates that a column is empty, and could be skipped entirely.
- pushChildNode() : void
- removeNode() : self
- replaceNode() : self
- setClasses() : void
- Normalizes class names following the rules of identifier-normalization
- 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
$colSpan read-only
private
int
$colSpan
$content
private
string
$content
$rowSpan
private
int
$rowSpan
= 1
Methods
__construct()
public
__construct(string $content, int $colSpan[, array<string|int, Node> $nodes = [] ][, int $rowSpan = 1 ]) : mixed
Parameters
- $content : string
- $colSpan : int
- $nodes : array<string|int, Node> = []
- $rowSpan : int = 1
addChildNode()
public
addChildNode(TValue $node) : void
Parameters
- $node : TValue
addContent()
public
addContent(string $content) : void
Parameters
- $content : string
getChildren()
public
getChildren() : array<string|int, TValue>
Return values
array<string|int, TValue>getClasses()
public
getClasses() : array<string|int, string>
Return values
array<string|int, string>getClassesString()
public
getClassesString() : string
Return values
stringgetColSpan()
public
getColSpan() : int
Return values
intgetContent()
public
getContent() : 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>getRowSpan()
public
getRowSpan() : int
Return values
intgetValue()
public
getValue() : TValue
Return values
TValuehasOption()
public
hasOption(string $name) : bool
Parameters
- $name : string
Return values
boolincrementRowSpan()
public
incrementRowSpan() : void
isCompletelyEmpty()
Indicates that a column is empty, and could be skipped entirely.
public
isCompletelyEmpty() : bool
Return values
boolpushChildNode()
public
pushChildNode(TValue $node) : void
Parameters
- $node : TValue
removeNode()
public
removeNode(int $key) : self
Parameters
- $key : int
Tags
Return values
selfreplaceNode()
public
replaceNode(int $key, TValue $node) : self
Parameters
- $key : int
- $node : TValue
Tags
Return values
selfsetClasses()
Normalizes class names following the rules of identifier-normalization
public
setClasses(array<string|int, string> $classes) : void
Parameters
- $classes : array<string|int, string>
Tags
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>