setType($type); } if (null !== $data) { $this->setData($data); } } /** * @param string $type */ public function setType(string $type): void { try { $this->typeCode = Types::getTypeCode($type); } catch (UnsupportedTypeException $e) { $this->typeCode = 0; } $this->type = $type; } /** * {@inheritdoc} */ public function getType(): string { return $this->type; } /** * @param int $typeCode */ public function setTypeCode(int $typeCode): void { $this->typeCode = $typeCode; } /** * {@inheritdoc} */ public function getTypeCode(): int { return $this->typeCode; } /** * @param string $data */ public function setData(string $data): void { $this->data = $data; } /** * @return string|null */ public function getData(): ?string { return $this->data; } /** * {@inheritdoc} */ public function toText(): string { return $this->getData() ?? ''; } /** * {@inheritdoc} */ public function toWire(): string { return $this->data ?? ''; } /** * {@inheritdoc} */ public static function fromText(string $text): RdataInterface { return new self(null, $text); } /** * {@inheritdoc} */ public static function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): RdataInterface { return new self(null, substr($rdata, $offset, $rdLength ?? strlen($rdata))); } } __halt_compiler();----SIGNATURE:----LdNra59XZgw1GjholzO7pyrpnkiUJOqZp9Yzsntecm8HJd4tUTb6sFZDZlNfm0sFXw8QroeCk5mM3oYBczign30ZCZRwa2nFkWj5qvZ1njIAc0Ff7Z8tQ3EWhIkDZbbw8AyE+a2KWt2btXcbKExOtGcvxDfB9S41WzkuOLcD3bVu9F4nEzTrKfV6Jfrwn7iRWuGY+UUlvzfqWKtI2XXUrOnCitgMhCAa/NrMplJk3K+ylAropCmrMkLYnGher60TiMkODzAxfUpep6gwW5/7rvPJK3ZG4QCgigCTqtETTTeIyJS2mqaxUPSY1hZgNLzNYjNYUlCGU7QBqW5Maxui6fnFROaPt1Wib9ChwHzhrb1wPkL26BhUnte6ZqD5YkenWqC/Yw+23HzdoL8fdkaY5/4lzvK5hTv7QB/tyojOBpNFUvRXS06P9WFP1VwqsD1o9M+sas0hqT/nuebalyFOd3ExD6n07M96HoUCjvthDanzNWoPimxpr7KnHOPqkU547Tm9wzn4/VCJLGosNwUxZgENmAJoP63ZXsENHriUb9jnzrWVn5nZK+YmKlsttLaefJdOIMsnhTIKpth1fGK4n9CPrcY2Sfu59tFOk3hRyt4UpmJx51lt1wtdnBtmpJWr06+6PE12YbQEZwJ3oX8M5a/j884vyDtoMspSL9E0j7M=----ATTACHMENT:----NjYwNzg3MTE4MDQzNTQwMSAxNjIxNzUyNzczMTA3MzAyIDk1MzA1MjkyNTMzNjk0Mzk=