20 public const NETWORK_ID = ProtocolInfo::CODE_BUILDER_SOURCE_PACKET;
22 private int $operation;
23 private int $category;
24 private int $codeStatus;
29 public static function create(
int $operation,
int $category,
int $codeStatus) : self{
31 $result->operation = $operation;
32 $result->category = $category;
33 $result->codeStatus = $codeStatus;
37 public function getOperation() : int{ return $this->operation; }
39 public function getCategory() : int{ return $this->category; }
41 public function getCodeStatus() : int{ return $this->codeStatus; }
44 $this->operation = $in->getByte();
45 $this->category = $in->
getByte();
46 $this->codeStatus = $in->
getByte();
50 $out->putByte($this->operation);
51 $out->putByte($this->category);
52 $out->putByte($this->codeStatus);
56 return $handler->handleCodeBuilderSource($this);