23 use GetTypeIdFromConstTrait;
24 use IntegerishMetadataProperty;
26 public const ID = EntityMetadataTypes::SHORT;
28 protected function min() :
int{
32 protected function max() :
int{
36 public static function read(ByteBufferReader $in) :
self{
37 return new self(LE::readSignedShort($in));
40 public function write(ByteBufferWriter $out) :
void{
41 LE::writeSignedShort($out, $this->value);