SharedWorker.php
public static function withClass($socketAddress, WorkerBootstrapProfile $bootstrapProfile, $implementationClassName = null, $autoStart = true)
    {
        return new static($socketAddress, $bootstrapProfile, ($implementationClassName === null) ? null : $bootstrapProfile->generateExpression($implementationClassName), $autoStart);
    }
public static function withClass($socketAddress, WorkerBootstrapProfile $bootstrapProfile, $implementationClassName = null, $autoStart = true)
    {
        return new static($socketAddress, $bootstrapProfile, ($implementationClassName === null) ? null : $bootstrapProfile->generateExpression($implementationClassName), $autoStart);
    }
@param string                 $socketAddress
@param WorkerBootstrapProfile $bootstrapProfile
@param string|null            $implementationClassName
@param bool                   $autoStart

@throws Exception\ConnectException

@return static