| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | trait InlineNodeBuilder |
||
| 14 | { |
||
| 15 | public function emoji(string $shortName, ?string $id = null, ?string $text = null): self |
||
| 16 | { |
||
| 17 | $emoji = new Emoji($shortName, $id, $text); |
||
| 18 | $this->append($emoji); |
||
| 19 | |||
| 20 | return $this; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function mention(string $mentionId, string $text, ?string $accessLevel = null): self |
||
| 29 | } |
||
| 30 | |||
| 31 | public function break(?Node $parent = null): self |
||
| 32 | { |
||
| 33 | $this->append(new Hardbreak($parent)); |
||
| 34 | |||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function card(string $url, ?string $data = null): self |
||
| 43 | } |
||
| 44 | |||
| 45 | abstract protected function append(Node $node): void; |
||
| 46 | } |
||
| 47 |