| 1 | <?php |
||
| 21 | class CNAME implements RdataInterface |
||
| 22 | { |
||
| 23 | 1 | use RdataTrait; |
|
| 24 | |||
| 25 | const TYPE = 'CNAME'; |
||
| 26 | const TYPE_CODE = 5; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string|null |
||
| 30 | */ |
||
| 31 | protected $target; |
||
| 32 | |||
| 33 | 45 | public function setTarget(string $target): void |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 15 | public function getTarget(): ?string |
|
| 45 | |||
| 46 | 13 | public function toText(): string |
|
| 50 | |||
| 51 | 5 | public function toWire(): string |
|
| 59 | |||
| 60 | 17 | public function fromText(string $text): void |
|
| 64 | |||
| 65 | 10 | public function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): void |
|
| 69 | } |
||
| 70 |