public function init()
 {
     $this->client = new \GearmanClient();
     $this->worker = new \GearmanWorker();
     if (empty($this->servers)) {
         $this->servers = ['127.0.0.1:4730'];
     }
     $this->client->addServers(implode(',', $this->servers));
     $this->worker->addServers(implode(',', $this->servers));
     if (!empty($this->clientOptions)) {
         $this->client->setOptions(implode(' | ', $this->clientOptions));
     }
     if (!empty($this->workerOptions)) {
         $this->worker->setOptions(implode(' | ', $this->workerOptions));
     }
 }