23 public function __construct(
24 private string $featureName,
25 private string $featureJson
28 public function getFeatureName() :
string{
return $this->featureName; }
30 public function getFeatureJson() :
string{
return $this->featureJson; }
32 public static function read(ByteBufferReader $in) :
self{
33 $featureName = CommonTypes::getString($in);
34 $featureJson = CommonTypes::getString($in);
36 return new self($featureName, $featureJson);
39 public function write(ByteBufferWriter $out) :
void{
40 CommonTypes::putString($out, $this->featureName);
41 CommonTypes::putString($out, $this->featureJson);