DelimiterInterface::setActive()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the league/commonmark package.
5
 *
6
 * (c) Colin O'Dell <[email protected]>
7
 *
8
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
9
 *  - (c) John MacFarlane
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace League\CommonMark\Delimiter;
16
17
use League\CommonMark\Inline\Element\AbstractStringContainer;
18
19
interface DelimiterInterface
20
{
21
    /**
22
     * @return bool
23
     */
24
    public function canClose(): bool;
25
26
    /**
27
     * @return bool
28
     */
29
    public function canOpen(): bool;
30
31
    /**
32
     * @return bool
33
     */
34
    public function isActive(): bool;
35
36
    /**
37
     * @param bool $active
38
     */
39
    public function setActive(bool $active);
40
41
    /**
42
     * @return string
43
     */
44
    public function getChar(): string;
45
46
    /**
47
     * @return int|null
48
     */
49
    public function getIndex(): ?int;
50
51
    /**
52
     * @return DelimiterInterface|null
53
     */
54
    public function getNext(): ?DelimiterInterface;
55
56
    /**
57
     * @param DelimiterInterface|null $next
58
     */
59
    public function setNext(?DelimiterInterface $next);
60
61
    /**
62
     * @return int
63
     */
64
    public function getLength(): int;
65
66
    /**
67
     * @param int $length
68
     */
69
    public function setLength(int $length);
70
71
    /**
72
     * @return int
73
     */
74
    public function getOriginalLength(): int;
75
76
    /**
77
     * @return AbstractStringContainer
78
     */
79
    public function getInlineNode(): AbstractStringContainer;
80
81
    /**
82
     * @return DelimiterInterface|null
83
     */
84
    public function getPrevious(): ?DelimiterInterface;
85
86
    /**
87
     * @param DelimiterInterface|null $previous
88
     */
89
    public function setPrevious(?DelimiterInterface $previous);
90
}
91