1<?php
2
3namespace dokuwiki\plugin\prosemirror\parser;
4
5interface InlineNodeInterface
6{
7
8    public function __construct($data, Node $parent, Node $previous = null);
9
10    /**
11     * If this node has that mark, increase its taillength and call this method on the previous node
12     *
13     * @param string $markType
14     *
15     * @return void
16     */
17    public function increaseMark($markType);
18
19    /**
20     * Get the mark's taillength on the first node to which this mark applies
21     *
22     * @param string $markType
23     *
24     * @return int|null null if the mark doesn't apply to this node or the marks taillength on the first node
25     */
26    public function getStartingNodeMarkScore($markType);
27}
28