final class NodeAggregateIdsByNodePaths implements JsonSerializable (View source)

An assignment of NodeAggregateIds to NodePaths

Usable for predefining NodeAggregateIds if multiple nodes are to be created simultaneously

Properties

protected NodeAggregateId> $nodeAggregateIds

Node aggregate ids, indexed by node path

Methods

__construct(array $nodeAggregateIds)

No description

createEmpty()

No description

fromArray(array $array)

No description

fromJsonString(string $jsonString)

No description

NodeAggregateId|null
getNodeAggregateId(NodePath $nodePath)

No description

add(NodePath $nodePath, NodeAggregateId $nodeAggregateId)

No description

array
getNodeAggregateIds()

No description

array
jsonSerialize()

No description

Details

__construct(array $nodeAggregateIds)

No description

Parameters

array $nodeAggregateIds

static NodeAggregateIdsByNodePaths createEmpty()

No description

static NodeAggregateIdsByNodePaths fromArray(array $array)

No description

Parameters

array $array

Return Value

NodeAggregateIdsByNodePaths

static NodeAggregateIdsByNodePaths fromJsonString(string $jsonString)

No description

Parameters

string $jsonString

Return Value

NodeAggregateIdsByNodePaths

Exceptions

JsonException

NodeAggregateId|null getNodeAggregateId(NodePath $nodePath)

No description

Parameters

NodePath $nodePath

Return Value

NodeAggregateId|null

NodeAggregateIdsByNodePaths add(NodePath $nodePath, NodeAggregateId $nodeAggregateId)

No description

Parameters

NodePath $nodePath
NodeAggregateId $nodeAggregateId

Return Value

NodeAggregateIdsByNodePaths

array getNodeAggregateIds()

No description

Return Value

array

array jsonSerialize()

No description

Return Value

array