Guides

SimpleTableRule
in package
implements Rule

FinalYes

Table of Contents

Interfaces

Rule

Constants

PRIORITY  = 40

Properties

$logger  : LoggerInterface
$productions  : RuleContainer

Methods

__construct()  : mixed
applies()  : bool
apply()  : TNode|null
Enters this state and loops through all relevant lines until a Node is produced.
createColumn()  : TableColumn
getColumnDefinition()  : array<string|int, array{start: int, length: int|null}>
isColspanDefinition()  : bool
isColumnDefinitionLine()  : bool
startsWithBlankCell()  : bool
tryParseRow()  : TableRow

Constants

Properties

Methods

getColumnDefinition()

private getColumnDefinition(string $line) : array<string|int, array{start: int, length: int|null}>
Parameters
$line : string
Return values
array<string|int, array{start: int, length: int|null}>

isColspanDefinition()

private isColspanDefinition(string|null $line) : bool
Parameters
$line : string|null
Return values
bool

isColumnDefinitionLine()

private isColumnDefinitionLine(string $line) : bool
Parameters
$line : string
Return values
bool

startsWithBlankCell()

private startsWithBlankCell(LinesIterator $documentIterator, array{start: int, length: int|null} $columnDefinition) : bool
Parameters
$documentIterator : LinesIterator
$columnDefinition : array{start: int, length: int|null}
Return values
bool

tryParseRow()

private tryParseRow(BlockContext $blockContext, array<string|int, array{start: int, length: int|null}> $columnDefinitions) : TableRow
Parameters
$blockContext : BlockContext
$columnDefinitions : array<string|int, array{start: int, length: int|null}>
Return values
TableRow

        
On this page

Search results