Guides

TableSeparatorLineConfig
in package

FinalYes

Table of Contents

Properties

$isHeader  : bool
$lineCharacter  : string
$partRanges  : array<string|int, mixed>
$rawContent  : string

Methods

__construct()  : mixed
getLineCharacter()  : string
Returns the "line" character used in the separator, either - or =
getPartRanges()  : array<string|int, array<string|int, int>>
Returns an array of position "ranges" where content should exist.
getRawContent()  : string
isHeader()  : bool

Properties

Methods

__construct()

public __construct(bool $isHeader, array<string|int, array<string|int, int>> $partRanges, string $lineCharacter, string $rawContent) : mixed
Parameters
$isHeader : bool
$partRanges : array<string|int, array<string|int, int>>
$lineCharacter : string
$rawContent : string

getLineCharacter()

Returns the "line" character used in the separator, either - or =

public getLineCharacter() : string
Return values
string

getPartRanges()

Returns an array of position "ranges" where content should exist.

public getPartRanges() : array<string|int, array<string|int, int>>

For example: === ===== === ===

Would yield: [[0, 3], [6, 11], [14, 17], [18, 21]]

Return values
array<string|int, array<string|int, int>>

        
On this page

Search results