public static function withClass(WorkerBootstrapProfile $bootstrapProfile, $implementationClassName, $workerCount = null)
    {
        return new static($bootstrapProfile, $bootstrapProfile->generateExpression($implementationClassName), $workerCount);
    }
public static function withClass(WorkerBootstrapProfile $bootstrapProfile, $implementationClassName, $workerCount = null)
    {
        return new static($bootstrapProfile, $bootstrapProfile->generateExpression($implementationClassName), $workerCount);
    }
@param WorkerBootstrapProfile $bootstrapProfile
@param string                 $implementationClassName
@param int|null               $workerCount

@throws Exception\InvalidArgumentException
@throws Exception\RuntimeException

@return static