final class PropertyValuesToWrite (View source)

Property values to write, supports arbitrary objects. Will be then converted to {SerializedPropertyValues} inside the events and persisted commands.

This object does not store the types of the values separately, while in {\Neos\ContentRepository\Core\Feature\NodeModification\Dto\SerializedPropertyValues}, the types are stored in the data structure. We expect the value types to match the NodeType's property types (this is validated in the command handler).

Methods

fromArray(array $values)

No description

fromJsonString(string $jsonString)

No description

withValue(string $valueName, mixed $value)

No description

array
getValues()

No description

Details

static PropertyValuesToWrite fromArray(array $values)

No description

Parameters

array $values

Return Value

PropertyValuesToWrite

static PropertyValuesToWrite fromJsonString(string $jsonString)

No description

Parameters

string $jsonString

Return Value

PropertyValuesToWrite

Exceptions

JsonException

PropertyValuesToWrite withValue(string $valueName, mixed $value)

No description

Parameters

string $valueName
mixed $value

Return Value

PropertyValuesToWrite

PropertyValuesToWrite merge(PropertyValuesToWrite $other)

No description

Parameters

PropertyValuesToWrite $other

Return Value

PropertyValuesToWrite

array getValues()

No description

Return Value

array