final class SetNodeProperties implements CommandInterface (View source)

Add property values for a given node.

The properties will not be replaced but will be merged via the existing ones by the projection. A null value will cause to unset a nodes' property.

The property values support arbitrary types (but must match the NodeType's property types - this is validated in the command handler).

Internally, this object is converted into a {\Neos\ContentRepository\Core\Feature\NodeModification\Command\SetSerializedNodeProperties} command, which is then processed and stored.

Methods

create(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $originDimensionSpacePoint, PropertyValuesToWrite $propertyValues)

No description

fromArray(array $array)

No description

Details

static SetNodeProperties create(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $originDimensionSpacePoint, PropertyValuesToWrite $propertyValues)

No description

Parameters

WorkspaceName $workspaceName

The workspace in which the set properties operation is to be performed

NodeAggregateId $nodeAggregateId

The id of the node aggregate to set the properties for

OriginDimensionSpacePoint $originDimensionSpacePoint

The dimension space point the properties should be changed in

PropertyValuesToWrite $propertyValues

Names and (unserialized) values of properties to set, or unset if the value is null

Return Value

SetNodeProperties

static CommandInterface fromArray(array $array)

No description

Parameters

array $array

Return Value

CommandInterface