code: public static function withClass(WorkerBootstrapProfile $bootstrapProfile, $implementationClassName, $workerCount = null)
      {
          return new static($bootstrapProfile, $bootstrapProfile->generateExpression($implementationClassName), $workerCount);
      }
docs: @param WorkerBootstrapProfile $bootstrapProfile
  @param string                 $implementationClassName
  @param int|null               $workerCount
  
  @throws Exception\InvalidArgumentException
  @throws Exception\RuntimeException
  
  @return static