final class CreateNodeVariant implements CommandInterface, JsonSerializable, RebasableToOtherWorkspaceInterface (View source)

Create a variant of a node in a content stream

Copy a node to another dimension space point respecting further variation mechanisms

Methods

create(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $sourceOrigin, OriginDimensionSpacePoint $targetOrigin)

No description

fromArray(array $array)

No description

array
jsonSerialize()

No description

Details

static CreateNodeVariant create(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $sourceOrigin, OriginDimensionSpacePoint $targetOrigin)

No description

Parameters

WorkspaceName $workspaceName

The workspace in which the create operation is to be performed

NodeAggregateId $nodeAggregateId

The identifier of the affected node aggregate

OriginDimensionSpacePoint $sourceOrigin

Dimension Space Point from which the node is to be copied from

OriginDimensionSpacePoint $targetOrigin

Dimension Space Point to which the node is to be copied to

Return Value

CreateNodeVariant

static CommandInterface fromArray(array $array)

No description

Parameters

array $array

Return Value

CommandInterface

array jsonSerialize()

No description

Return Value

array

RebasableToOtherWorkspaceInterface createCopyForWorkspace(WorkspaceName $targetWorkspaceName)

No description

Parameters

WorkspaceName $targetWorkspaceName

Return Value

RebasableToOtherWorkspaceInterface