1 | <?php |
||
18 | class AFSDB implements RdataInterface |
||
19 | { |
||
20 | 1 | use RdataTrait; |
|
21 | |||
22 | const TYPE = 'AFSDB'; |
||
23 | const TYPE_CODE = 18; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | private $subType; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $hostname; |
||
34 | |||
35 | 1 | public function getSubType(): int |
|
39 | |||
40 | 5 | public function setSubType(int $subType): void |
|
44 | |||
45 | 1 | public function getHostname(): string |
|
49 | |||
50 | 5 | public function setHostname(string $hostname): void |
|
54 | |||
55 | /** |
||
56 | * @throws \InvalidArgumentException |
||
57 | */ |
||
58 | 4 | public function toText(): string |
|
70 | |||
71 | 1 | public function toWire(): string |
|
75 | |||
76 | 1 | public function fromText(string $text): void |
|
83 | |||
84 | 1 | public function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): void |
|
93 | } |
||
94 |