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