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:----kughI0BR9dr1+QppO8hyXqb6NU0MA5Y2pw23vXm9iLnV8hoHdBgjr1sLMRmeGLWZrjiJShswt0h4JaR1YYxjryyn8tMCnIyXnHyLItMPTuOAEXLGv0+JBngGqnTnNjSgRUw4yL010aKZ1Gg20VESzXNMu5dc0c+wPV4ccno+EN1liUMQK4AoBl7NXxrQgPbVnclAYcQtZe5+SHrdsJe4DOgEE4KT8yLU0LNCPTuDVAJIEwWcvfwmmspkeQqF3+gFvt3bEVGXS26fpaN2EnLymsOA7PHJrnKwhS972G0mJOMAQqDZ4B0gNFhPc9BUxfjbfrjpHcqoodHXkZ/+Eju4JOeXx/FktNs7+QNyJsEXbUkBIAS0g9AR225ZsFZSowqRxl3QhykugB7t2m/111XIqyxYtBTJm1BnQgr0/3ZEYACFSiYq1VscsWlaQsSKJvMtVgki5dAl13AjvFsSvyIMsNJXq8FZiOQtyPfL/a7N/GNhdkCV9CHm1GXjuh5ZcvzcOlg/sWx8bMy9ZWL8hEhFL+KQwjX1OO45lAqJSHqY1bukpbg2Zn3QyG2WZRrTA6PwKbaQzJ/vtDm7cq42u1Fdfnw8w0lyQmQGKuXKGhqrTiB6qbu2hRq1K/phj7UAWA9r5bGDWYsh/IoJmeyTKiwilYXXBsFLLBH5ua3WiOty29c=----ATTACHMENT:----MjI2ODcwODUzMzE4NjM4NiA1MzUwMTQ2MDI3OTg0ODY0IDUwMDM1MzEzMzA0MTE1ODY=