isHeader = $isHeader; $this->tableType = $tableType; $this->partRanges = $partRanges; $this->lineCharacter = $lineCharacter; $this->rawContent = $rawContent; } public function isHeader(): bool { return $this->isHeader; } public function isSimpleTableType(): bool { return $this->tableType === TableNode::TYPE_SIMPLE; } /** * Returns an array of position "ranges" where content should exist. * * For example: * === ===== === === * * Would yield: * [[0, 3], [6, 11], [14, 17], [18, 21]] * * @return int[][] */ public function getPartRanges(): array { return $this->partRanges; } /** * Returns the "line" character used in the separator, * either - or = */ public function getLineCharacter(): string { return $this->lineCharacter; } public function getRawContent(): string { return $this->rawContent; } }