protected function registerJob(string $jobName, string $workerId) : bool
    {
        if (!isset($this->workerJobCapabilities[$workerId])) {
            $this->workerJobCapabilities[$workerId] = [];
        }
        if (!in_array($jobName, $this->workerJobCapabilities[$workerId])) {
            array_push($this->workerJobCapabilities[$workerId], $jobName);
        }
        return true;
    }
protected function registerJob(string $jobName, string $workerId) : bool
    {
        if (!isset($this->workerJobCapabilities[$workerId])) {
            $this->workerJobCapabilities[$workerId] = [];
        }
        if (!in_array($jobName, $this->workerJobCapabilities[$workerId])) {
            array_push($this->workerJobCapabilities[$workerId], $jobName);
        }
        return true;
    }
protected function registerJob ( string $ jobName , string $ workerId ) : bool { if ( ! isset ( $ this -> workerJobCapabilities [ $ workerId ] ) ) { $ this -> workerJobCapabilities [ $ workerId ] = [ ] ; } if ( ! in_array ( $ jobName , $ this -> workerJobCapabilities [ $ workerId ] ) ) { array_push ( $ this -> workerJobCapabilities [ $ workerId ] , $ jobName ) ; } return true ; }
Registers a new job-type a workers is capable of doing.

@param string $jobName
@param string $workerId
@return bool
Registers a new job - type a workers is capable of doing .