1<?php 2 3namespace dokuwiki\plugin\prosemirror\parser; 4 5class PluginNode extends Node implements InlineNodeInterface 6{ 7 protected $textNode; 8 9 public function __construct($data, Node $parent, Node $previous = null) 10 { 11 $this->textNode = new TextNode($data['content'][0], $this, $previous); 12 } 13 14 public function toSyntax() 15 { 16 return $this->textNode->toSyntax(); 17 } 18 19 /** 20 * @param string $markType 21 */ 22 public function increaseMark($markType) 23 { 24 return $this->textNode->increaseMark($markType); 25 } 26 27 public function getStartingNodeMarkScore($markType) 28 { 29 return $this->textNode->getStartingNodeMarkScore($markType); 30 } 31} 32