1 | <?php |
||
22 | class UnknownType implements RdataInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $typeCode; |
||
28 | |||
29 | /** |
||
30 | * @var string|null |
||
31 | */ |
||
32 | private $data; |
||
33 | |||
34 | 3 | public function setTypeCode(int $typeCode): void |
|
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 3 | public function getData(): ?string |
|
46 | |||
47 | /** |
||
48 | * @param string $data |
||
49 | */ |
||
50 | 5 | public function setData(?string $data): void |
|
54 | |||
55 | 1 | public function getType(): string |
|
59 | |||
60 | 2 | public function getTypeCode(): int |
|
64 | |||
65 | 2 | public function toText(): string |
|
73 | |||
74 | 1 | public function toWire(): string |
|
78 | |||
79 | /** |
||
80 | * @throws ParseException |
||
81 | */ |
||
82 | 3 | public function fromText(string $text): void |
|
99 | |||
100 | 1 | public function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): void |
|
104 | } |
||
105 |