parent = &$parent; $this->data = $data; // every inline node needs a TextNode to track marks $this->textNode = new TextNode(['marks' => $data['marks'] ?? null], $parent, $previous); } /** * Get the node's representation as DokuWiki Syntax * * @return string */ public function toSyntax() { return $this->data['attrs']['syntax']; } /** * @param string $markType */ public function increaseMark($markType) { return $this->textNode->increaseMark($markType); } /** * @param string $markType * @return int|null * @throws \Exception */ public function getStartingNodeMarkScore($markType) { return $this->textNode->getStartingNodeMarkScore($markType); } }