Total Complexity | 9 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class InlineCard extends InlineNode |
||
15 | { |
||
16 | protected string $type = 'inlineCard'; |
||
17 | private ?string $data; |
||
18 | private ?string $url; |
||
19 | |||
20 | public function __construct(?string $url = null, ?string $data = null) |
||
29 | } |
||
30 | |||
31 | public static function load(array $data, ?BlockNode $parent = null): self |
||
36 | } |
||
37 | |||
38 | public function getData(): ?string |
||
41 | } |
||
42 | |||
43 | public function getUrl(): ?string |
||
44 | { |
||
45 | return $this->url; |
||
46 | } |
||
47 | |||
48 | protected function attrs(): array |
||
60 | } |
||
61 | } |
||
62 |