final class SerializedPropertyValues implements IteratorAggregate, Countable, JsonSerializable (View source)

"Raw" property values as saved in the event log // in projections.

This means: each "value" must be a simple PHP data type.

NOTE: if a value is set to NULL in SerializedPropertyValues, this means the key should be unset, because we treat NULL and "not set" the same from an API perspective.

Properties

protected SerializedPropertyValue> $iterator

Methods

fromArray(array $propertyValues)

No description

defaultFromNodeType(NodeType $nodeType)

No description

fromJsonString(string $jsonString)

No description

array
splitByScope(NodeType $nodeType)

No description

bool
propertyExists(string $propertyName)

No description

SerializedPropertyValue|null
getProperty(string $propertyName)

No description

array
getValues()

No description

getIterator()

No description

int
count()

No description

array
getPlainValues()

No description

array
jsonSerialize()

No description

Details

static SerializedPropertyValues fromArray(array $propertyValues)

No description

Parameters

array $propertyValues

Return Value

SerializedPropertyValues

static SerializedPropertyValues defaultFromNodeType(NodeType $nodeType)

No description

Parameters

NodeType $nodeType

Return Value

SerializedPropertyValues

static SerializedPropertyValues fromJsonString(string $jsonString)

No description

Parameters

string $jsonString

Return Value

SerializedPropertyValues

array splitByScope(NodeType $nodeType)

No description

Parameters

NodeType $nodeType

Return Value

array

bool propertyExists(string $propertyName)

No description

Parameters

string $propertyName

Return Value

bool

SerializedPropertyValue|null getProperty(string $propertyName)

No description

Parameters

string $propertyName

Return Value

SerializedPropertyValue|null

array getValues()

No description

Return Value

array

ArrayIterator getIterator()

No description

Return Value

ArrayIterator

int count()

No description

Return Value

int

array getPlainValues()

No description

Return Value

array

array jsonSerialize()

No description

Return Value

array