textNode = new TextNode(['marks' => $data['marks'] ?? null], $parent, $previous); } public function toSyntax() { return '\\\\ '; } /** * @param string $markType */ public function increaseMark($markType) { $this->textNode->increaseMark($markType); } /** * @param string $markType * @return int|null * @throws \Exception */ public function getStartingNodeMarkScore($markType) { return $this->textNode->getStartingNodeMarkScore($markType); } }