20 public const NETWORK_ID = ProtocolInfo::GAME_TEST_RESULTS_PACKET;
22 private bool $success;
23 private string $error;
24 private string $testName;
29 public static function create(
bool $success,
string $error,
string $testName) : self{
31 $result->success = $success;
32 $result->error = $error;
33 $result->testName = $testName;
37 public function isSuccess() : bool{ return $this->success; }
39 public function getError() : string{ return $this->error; }
41 public function getTestName() : string{ return $this->testName; }
44 $this->success = $in->getBool();
50 $out->putBool($this->success);
51 $out->putString($this->error);
52 $out->putString($this->testName);
56 return $handler->handleGameTestResults($this);