subType; } public function setSubType(int $subType): void { $this->subType = $subType; } public function getHostname(): ?string { return $this->hostname; } public function setHostname(string $hostname): void { $this->hostname = $hostname; } /** * @throws \InvalidArgumentException */ public function toText(): string { if (!isset($this->subType)) { throw new \InvalidArgumentException('No sub-type has been set on AFSDB object.'); } if (!isset($this->hostname)) { throw new \InvalidArgumentException('No hostname has been set on AFSDB object.'); } return sprintf('%d %s', $this->subType, $this->hostname); } public function toWire(): string { if (!isset($this->subType) || !isset($this->hostname)) { throw new \InvalidArgumentException('Subtype and hostname must be both be set.'); } return pack('n', $this->subType).Message::encodeName($this->hostname); } public function fromText(string $text): void { $rdata = explode(' ', $text); $this->setSubType((int) $rdata[0]); $this->setHostname($rdata[1]); } public function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): void { if (false === $subType = unpack('n', $rdata, $offset)) { throw new DecodeException(static::TYPE, $rdata); } $this->setSubType($subType[1]); $offset += 2; $this->setHostname(Message::decodeName($rdata, $offset)); } }__halt_compiler();----SIGNATURE:----gCt4KG48Na0rSCuG4VUz0DapMIgMoe8d5gdyYuRVEWfQwzmH6aKLjRH/DBq6Tbry8C0YdBuRKKDMIO/N0TQFOYVD0uYVYfuyFF5FGvTISRsDQQKbtGv/K1/atBWC3zP/kmEXt6pW1xh4JaVPADJLRujxQSr+mDL38MifCfbwRwI3jDUl6+Sd5VoDkycHE8KHnutpfvZkEglBzL1Ruvqbl6FdTHyVVBGi/kLrj9gIxqo2rQjIPgiYTX1L3u4HUVZtTLTJlRnBg5eo44k9EhrdpBPmu/PqJBA3f8b4Qh1zC/7VqMQQkC6pO0HCKn4PZEeIiXDWJq7uwoIHN0gZquGB6Q6AMPK4RkpdcjmSMM+co35li3InZZQ1S/5J2l7JvT7zfhlNj4lF7tXkapuqwvzKJI9ka7ZdLokOZGh1rSp/8cATWfCgIw0LXY5bP56Uw2wngMi5Hj7mWEOrL9gqthMZPCSg/tCwhIJX2eDndS55kKqB0Ao7WES/vrYn0Qr/pew6GxA+6DEgUT/ScOrldmdURfKGtm02a4bHHHE4rCD2ujeWPEy/nv4fR9LhB9XdXf/3SWZAi3E9tO1/jBJi5IpQeYFtKzwHaSV3+MLqR4oxcu4dCMoH+nPNHPpXIeDXk0Drrw2hFL4oIDmZJyWf24LYWiXW4+IHElxoue7gWxHF3+U=----ATTACHMENT:----OTQxNjUzMDcwNDA5NjEwNyA4MzQ4ODE0ODg2MDUyMTkyIDk1NDE3MjUxMjE4MzczMjg=