Temporal Docs PHP SDK API Version 2.21 (latest release) Release notes

Documentation

WorkerDeploymentOptions
in package
uses CloneWith

Options for configuring the Worker Versioning feature.

Table of Contents

Properties

$defaultVersioningBehavior  : VersioningBehavior
$useVersioning  : bool
If set, opts this worker into the Worker Deployment Versioning feature.
$version  : WorkerDeploymentVersion|null

Methods

new()  : self
withDefaultVersioningBehavior()  : self
Sets the default versioning behavior for this worker.
withUseVersioning()  : self
If set, opts this worker into the Worker Deployment Versioning feature.
withVersion()  : self
Sets the version of the worker deployment.
__construct()  : mixed

Properties

$defaultVersioningBehavior read-only

private VersioningBehavior $defaultVersioningBehavior
Attributes
#[Marshal]
$name: 'DefaultVersioningBehavior'
$type: \Temporal\Internal\Marshaller\Type\EnumValueType::class

$useVersioning read-only

If set, opts this worker into the Worker Deployment Versioning feature.

private bool $useVersioning

It will only operate on workflows it claims to be compatible with.

Attributes
#[Marshal]
$name: 'UseVersioning'

Methods

withUseVersioning()

If set, opts this worker into the Worker Deployment Versioning feature.

public withUseVersioning(bool $value) : self

It will only operate on workflows it claims to be compatible with. You must also call self::withVersion() if this flag is true.

Parameters
$value : bool
Return values
self
On this page

Search results