protected function work(): void
    {
        if (@$this->worker->work()
            || $this->worker->returnCode() == GEARMAN_IO_WAIT
            || $this->worker->returnCode() == GEARMAN_NO_JOBS
        ) {
            if ($this->worker->returnCode() == GEARMAN_SUCCESS) {
                return;
            }

            if (!@$this->worker->wait()) {
                if ($this->worker->returnCode() == GEARMAN_NO_ACTIVE_FDS) {
                    sleep(5);
                }
            }
        }
    }
protected function work(): void
    {
        if (@$this->worker->work()
            || $this->worker->returnCode() == GEARMAN_IO_WAIT
            || $this->worker->returnCode() == GEARMAN_NO_JOBS
        ) {
            if ($this->worker->returnCode() == GEARMAN_SUCCESS) {
                return;
            }

            if (!@$this->worker->wait()) {
                if ($this->worker->returnCode() == GEARMAN_NO_ACTIVE_FDS) {
                    sleep(5);
                }
            }
        }
    }
protected function work ( ) : void { if ( @ $ this -> worker -> work ( ) || $ this -> worker -> returnCode ( ) == GEARMAN_IO_WAIT || $ this -> worker -> returnCode ( ) == GEARMAN_NO_JOBS ) { if ( $ this -> worker -> returnCode ( ) == GEARMAN_SUCCESS ) { return ; } if ( ! @ $ this -> worker -> wait ( ) ) { if ( $ this -> worker -> returnCode ( ) == GEARMAN_NO_ACTIVE_FDS ) { sleep ( 5 ) ; } } } }
Runs the gearman worker process.

@link http://php.net/manual/en/gearmanworker.work.php
Runs the gearman worker process .