26 private array $experiments,
27 private bool $hasPreviouslyUsedExperiments
33 public function hasPreviouslyUsedExperiments() : bool{ return $this->hasPreviouslyUsedExperiments; }
37 for($i = 0, $len = $in->
getLInt(); $i < $len; ++$i){
40 $experiments[$experimentName] = $enabled;
42 $hasPreviouslyUsedExperiments = $in->
getBool();
43 return new self($experiments, $hasPreviouslyUsedExperiments);
46 public function write(PacketSerializer $out) : void{
47 $out->putLInt(count($this->experiments));
48 foreach($this->experiments as $experimentName => $enabled){
49 $out->putString($experimentName);
50 $out->putBool($enabled);
52 $out->putBool($this->hasPreviouslyUsedExperiments);