1 | <?php |
||
21 | class CSYNC implements RdataInterface |
||
22 | { |
||
23 | use RdataTrait; |
||
24 | |||
25 | const TYPE = 'CSYNC'; |
||
26 | const TYPE_CODE = 62; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $soaSerial; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | private $flags; |
||
37 | |||
38 | /** |
||
39 | * @var array |
||
40 | */ |
||
41 | private $types = []; |
||
42 | |||
43 | /** |
||
44 | * @param string $type |
||
45 | */ |
||
46 | 5 | public function addType(string $type): void |
|
50 | |||
51 | /** |
||
52 | * Clears the types from the RDATA. |
||
53 | */ |
||
54 | public function clearTypes(): void |
||
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | 1 | public function getTypes(): array |
|
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | 1 | public function getSoaSerial(): int |
|
74 | |||
75 | /** |
||
76 | * @param int $soaSerial |
||
77 | */ |
||
78 | 5 | public function setSoaSerial(int $soaSerial): void |
|
82 | |||
83 | /** |
||
84 | * @return int |
||
85 | */ |
||
86 | 1 | public function getFlags(): int |
|
90 | |||
91 | /** |
||
92 | * @param int $flags |
||
93 | */ |
||
94 | 5 | public function setFlags(int $flags): void |
|
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | 1 | public function toText(): string |
|
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | 1 | public function toWire(): string |
|
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | 1 | public static function fromText(string $text): RdataInterface |
|
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | 1 | public static function fromWire(string $rdata): RdataInterface |
|
146 | } |
||
147 |