typeCode = $typeCode; } /** * @return string */ public function getData(): ?string { return $this->data; } /** * @param string $data */ public function setData(?string $data): void { $this->data = $data; } public function getType(): string { return 'TYPE'.$this->typeCode; } public function getTypeCode(): int { return $this->typeCode; } public function toText(): string { if (null === $this->data) { return '\# 0'; } return sprintf('\# %d %s', strlen($this->data), bin2hex($this->data)); } public function toWire(): string { return $this->data ?? ''; } /** * @throws ParseException */ public function fromText(string $text): void { if (1 !== preg_match('/^\\\#\s+(\d+)(\s[a-f0-9\s]+)?$/i', $text, $matches)) { throw new ParseException('Could not parse rdata of unknown type. Malformed string.'); } if ('0' === $matches[1]) { return; } $hexVal = str_replace(Tokens::SPACE, '', $matches[2]); if (false === $data = hex2bin($hexVal)) { throw new ParseException(sprintf('Could not parse hexadecimal data "%s".', $hexVal)); } $this->setData($data); } public function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): void { $rdLength = $rdLength ?? strlen($rdata); $this->setData(substr($rdata, $offset, $rdLength)); $offset += $rdLength; } }__halt_compiler();----SIGNATURE:----cAEFFh2X5qDskrvMa7vGcFsfpegoA3GkimfBgcecWb8qx2sWbcd1U6pvP6ddje0/uYZWQEwXvO2oauuT/gU7ztN0djiSPzf3nDw2WZ0aYYBh7JP3lpmhzW6IlUSYcx3CI1eIaOTY8w3x26sug+stuVqDjU3VWAJIFM3mzft09X6yKKqSetj162+yXLIjuW99asjvo0qI/pzd/8lPVp3IGiJCOwZ8gNzAt6Q4/E7b8+5U3zU6ttr56cR0vX6+T8HvxWdP45/qp+2gAVzFEjLcMC2sKlIY2Szx9vIpPSCyK1KWYIR1rf4szFPJq7QTVxM8i0JcuUek4aJesssLEmve1hZvC/Z8/DFPRc6LFiI6MwMFuNWB/ZfVPCvzYbRjFL209jtYw2tClnL7WKBERv9SwyYhofatNyENEFaN6xvMX4AHwtsPI1JqlxH5HUzs74558/yY8EbfVtWMQqmSz2C8cIMELcB9hmskG+cZfEtsWrpfKlISBssRD2l0+cZSXwxM8cv8ZCtbCzeNT1mz4Fva7a5DtAQ2ji6D6lwcs5IYPo44MaYQ8P/XmP6kC5pESDfi3i+6VZ22RHQcbOYLeR3lhR0+wXNMn/Uhea6T8OLpAIT4PI7cMTtcGkG4yrRtAgwAw+u19Ner7f1XLoge0BXdOiHEzpUZ925uI7/UjKxZAXQ=----ATTACHMENT:----NzU5NjQwODcxNzcyMDg0NSA1MTIyNjA3MzA5NDI3MTI0IDE1MTk1MDcwMTIwMDk5ODc=