ParserContext
in package
FinalYes
Table of Contents
Properties
- $currentLineNumber : int
- $errors : array<string|int, string>
- $headerRows : int
- $rawDataLines : array<string|int, string>
- $separatorLineConfigs : array<int, TableSeparatorLineConfig>
Methods
- addError() : void
- getColumnRanges() : array<int, int>
- getDataLines() : array<string|int, string>
- getErrors() : array<string|int, string>
- getHeaderRows() : int
- getTableAsString() : string
- hasErrors() : bool
- pushContentLine() : void
- pushSeparatorLine() : void
- setHeaderRows() : void
Properties
$currentLineNumber
private
int
$currentLineNumber
= 0
$errors
private
array<string|int, string>
$errors
= []
$headerRows
private
int
$headerRows
= 0
$rawDataLines
private
array<string|int, string>
$rawDataLines
= []
$separatorLineConfigs
private
array<int, TableSeparatorLineConfig>
$separatorLineConfigs
= []
Methods
addError()
public
addError(string $message) : void
Parameters
- $message : string
getColumnRanges()
public
getColumnRanges() : array<int, int>
Return values
array<int, int>getDataLines()
public
getDataLines() : array<string|int, string>
Return values
array<string|int, string>getErrors()
public
getErrors() : array<string|int, string>
Return values
array<string|int, string>getHeaderRows()
public
getHeaderRows() : int
Return values
intgetTableAsString()
public
getTableAsString() : string
Return values
stringhasErrors()
public
hasErrors() : bool
Return values
boolpushContentLine()
public
pushContentLine(string $line) : void
Parameters
- $line : string
pushSeparatorLine()
public
pushSeparatorLine(TableSeparatorLineConfig $lineConfig) : void
Parameters
- $lineConfig : TableSeparatorLineConfig
setHeaderRows()
public
setHeaderRows(int $rowNumber) : void
Parameters
- $rowNumber : int