Get last Gearman return code

GearmanWorker::removeOptions
GearmanWorker::setId
GearmanWorker
PHP Manual

# GearmanWorker::returnCode

(PECL gearman >= 0.5.0)

GearmanWorker::returnCode — Get last Gearman return code

### Description

public int GearmanWorker::returnCode ( void )

Returns the last Gearman return code.

### Parameters

This function has no parameters.

### Return Values

A valid Gearman return code.

### See Also

- GearmanWorker::error() - Get the last error encountered
- GearmanWorker::getErrno() - Get errno

GearmanWorker::removeOptions
GearmanWorker::setId
GearmanWorker
PHP Manual