22    public function __construct(
 
   27    public function getId() : 
int{ 
return $this->id; }
 
   29    public function getLevel() : 
int{ 
return $this->level; }
 
   31    public static function read(ByteBufferReader $in) : 
self{
 
   32        $id = Byte::readUnsigned($in);
 
   33        $level = Byte::readUnsigned($in);
 
   34        return new self($id, $level);
 
   37    public function write(ByteBufferWriter $out) : 
void{
 
   38        Byte::writeUnsigned($out, $this->
id);
 
   39        Byte::writeUnsigned($out, $this->level);