data = $data; $this->targets = $targets; $this->level = $level; $this->channel = $channel; } public function onRun(){ try{ $this->final = zlib_encode($this->data, ZLIB_ENCODING_DEFLATE, $this->level); $this->data = null; }catch(\Exception $e){ } } public function onCompletion(Server $server){ $server->broadcastPacketsCallback($this->final, $this->targets, $this->channel); } }