Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait InlineNodeBuilder |
||
13 | { |
||
14 | public function emoji(string $shortName, ?string $id = null, ?string $text = null): self |
||
15 | { |
||
16 | $emoji = new Emoji($shortName, $id, $text); |
||
17 | $this->append($emoji); |
||
18 | |||
19 | return $this; |
||
20 | } |
||
21 | |||
22 | public function mention(string $mentionId, string $text, ?string $accessLevel = null): self |
||
28 | } |
||
29 | |||
30 | public function break(?Node $parent = null): self |
||
35 | } |
||
36 | |||
37 | abstract protected function append(Node $node): void; |
||
38 | } |
||
39 |