Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | abstract class TdObject implements TdTypeSerializableInterface, JsonSerializable |
||
14 | { |
||
15 | public const TYPE_NAME = '_tdObject'; |
||
16 | |||
17 | public ?string $tdExtra = null; |
||
18 | |||
19 | public function getTdExtra(): ?string |
||
22 | } |
||
23 | |||
24 | public function getTdTypeName(): string |
||
25 | { |
||
26 | return static::TYPE_NAME; |
||
27 | } |
||
28 | |||
29 | public function setTdExtra(?string $tdExtra): self |
||
30 | { |
||
31 | $this->tdExtra = $tdExtra; |
||
32 | |||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | public function jsonSerialize(): array |
||
44 | } |
||
45 | } |
||
46 |