23 use GetTypeIdFromConstTrait;
25 public const ID = DataStoreUpdateValueType::STRING;
27 public function __construct(
28 private readonly
string $value
31 public function getValue() :
string{
return $this->value; }
33 public function write(ByteBufferWriter $out) :
void{
34 CommonTypes::putString($out, $this->value);
37 public static function read(ByteBufferReader $in) :
self{
38 return new self(CommonTypes::getString($in));