mode = $mode; } public function setIndent(string $indent): void { $this->indentStr = $indent; } public function setIndentLevel(int $level): void { $this->indentLevel = $level; } public function getLang(): string { return $this->lang; } abstract public function getLine($node): int; abstract public function getType($node): string; protected function getIndent(): string { return str_repeat($this->indentStr, $this->indentLevel); } }