identifier; } /** * Return the job id * * @return int */ public function id() { return $this->id; } /** * Returns the number of workers for this job. **Defaults to* 1. * * @return int */ public function numWorkers() { return $this->numWorkers; } /** * Returns the optional file required to run this job. * * @return string|null */ public function bootstrapFile() { return $this->bootstrapFile; } /** * Runs the job loop. This is expected to be a blocking call. */ public abstract function run(); /** * Finish any pending activity for this job. * * @param array $items * @return bool */ public function flush(array $items = []) { return false; } }