24 public function __construct(
25 private string $identifier,
29 public function getIdentifier() :
string{
return $this->identifier; }
31 public function getPriority() :
int{
return $this->priority; }
33 public static function read(ByteBufferReader $in) :
self{
34 $identifier = CommonTypes::getString($in);
35 $priority = LE::readSignedInt($in);
42 public function write(ByteBufferWriter $out) :
void{
43 CommonTypes::putString($out, $this->identifier);
44 LE::writeSignedInt($out, $this->priority);