payload ?? "") > 0){ return ord($this->payload[0]); } return self::NETWORK_ID; } public function getName() : string{ return "unknown packet"; } public function decode(){ $this->payload = $this->getRemaining(); } public function encode(){ //Do not reset the buffer, this class does not have a valid NETWORK_ID constant. $this->put($this->payload); } public function handle(NetworkSession $session) : bool{ return false; } }