Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Text extends InlineNode |
||
15 | { |
||
16 | protected string $type = 'text'; |
||
17 | private string $text; |
||
18 | |||
19 | public function __construct(string $text, MarkNode ...$marks) |
||
20 | { |
||
21 | $this->text = $text; |
||
22 | |||
23 | foreach ($marks as $mark) { |
||
24 | $this->addMark($mark); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | public function jsonSerialize(): array |
||
34 | } |
||
35 | |||
36 | public static function load(array $data): self |
||
51 | } |
||
52 | } |
||
53 |