Guides

GridTableBuilder
in package

FinalYes

Table of Contents

Properties

$logger  : LoggerInterface

Methods

__construct()  : mixed
buildNode()  : TableNode|null
compile()  : TableNode
assertColumnEnded()  : void
buildColumn()  : TableColumn
buildRow()  : TableRow
concatenateTableRow()  : array<int, TableRow>
concatenateTableRows()  : array<int, TableRow>
createColumn()  : TableColumn
extractHeaderRows()  : array<int, TableRow>
extractRow()  : TableRow
extractTableCell()  : void
extractTableRows()  : array<int, TableRow>
findColumnInPreviousRows()  : TableColumn
findRowSpans()  : array<int, bool>
handlePartialSeparator()  : array<int, TableRow>
handlePreviousRowWasAPartialSeparator()  : void
hasRowSpan()  : bool
trimTableCellContents()  : array<int, TableRow>

Properties

Methods

__construct()

public __construct(LoggerInterface $logger) : mixed
Parameters
$logger : LoggerInterface

assertColumnEnded()

private assertColumnEnded(int|null $currentColumnStart, int|null $previousColumnEnd) : void
Parameters
$currentColumnStart : int|null
$previousColumnEnd : int|null
Tags
phpstan-assert

int $previousColumnEnd

concatenateTableRow()

private concatenateTableRow(array<int, TableRow$rows, int $rowIndex, array<int, bool> $partialSeparatorRows, TableRow $row) : array<int, TableRow>
Parameters
$rows : array<int, TableRow>
$rowIndex : int
$partialSeparatorRows : array<int, bool>
$row : TableRow
Return values
array<int, TableRow>

createColumn()

private createColumn(string $line, int $currentColumnStart, int|null $previousColumnEnd, int $currentSpan) : TableColumn
Parameters
$line : string
$currentColumnStart : int
$previousColumnEnd : int|null
$currentSpan : int
Return values
TableColumn

extractRow()

private extractRow(array<int, int> $columnRanges, string $line, int &$currentSpan) : TableRow
Parameters
$columnRanges : array<int, int>
$line : string
$currentSpan : int
Return values
TableRow

extractTableCell()

private extractTableCell(array<int, int> $columnRanges, int|null &$currentColumnStart, int|null &$previousColumnEnd, string $line, int &$currentSpan, TableRow $row) : void
Parameters
$columnRanges : array<int, int>
$currentColumnStart : int|null
$previousColumnEnd : int|null
$line : string
$currentSpan : int
$row : TableRow

handlePartialSeparator()

private handlePartialSeparator(TableRow $row, array<int, TableRow$rows, int $rowIndex, array<int, int> &$columnIndexesCurrentlyInRowspan) : array<int, TableRow>
Parameters
$row : TableRow
$rows : array<int, TableRow>
$rowIndex : int
$columnIndexesCurrentlyInRowspan : array<int, int>
Tags
throws
Exception
Return values
array<int, TableRow>

handlePreviousRowWasAPartialSeparator()

private handlePreviousRowWasAPartialSeparator(array<int, int> $columnIndexesCurrentlyInRowspan, array<int, TableRow$rows, int $rowIndex, TableRow $row, ParserContext $context) : void
Parameters
$columnIndexesCurrentlyInRowspan : array<int, int>
$rows : array<int, TableRow>
$rowIndex : int
$row : TableRow
$context : ParserContext
Tags
throws
Exception

hasRowSpan()

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

        
On this page

Search results