final class NodeAggregateIdMapping implements JsonSerializable (View source)

internal  implementation detail of {@see \Neos\ContentRepository\Core\Feature\NodeDuplication\Dto\CopyNodesRecursively} command
 

An assignment of "old" to "new" NodeAggregateIds

Usable for predefining NodeAggregateIds if multiple nodes are copied.

You'll never create this class yourself; but you use {\Neos\ContentRepository\Core\Feature\NodeDuplication\Dto\CopyNodesRecursively::createFromSubgraphAndStartNode()}

Properties

protected NodeAggregateId> $nodeAggregateIds

new Node aggregate ids, indexed by old node aggregate id

Methods

__construct(array $nodeAggregateIds)

No description

generateForNodeSubtreeSnapshot(NodeSubtreeSnapshot $nodeSubtreeSnapshot)

Create a new id mapping, GENERATING new ids.

fromArray(array $array)

No description

NodeAggregateId|null
getNewNodeAggregateId(NodeAggregateId $oldNodeAggregateId)

No description

array
jsonSerialize()

No description

array
getAllNewNodeAggregateIds()

No description

Details

__construct(array $nodeAggregateIds)

No description

Parameters

array $nodeAggregateIds

static NodeAggregateIdMapping generateForNodeSubtreeSnapshot(NodeSubtreeSnapshot $nodeSubtreeSnapshot)

Create a new id mapping, GENERATING new ids.

Parameters

NodeSubtreeSnapshot $nodeSubtreeSnapshot

Return Value

NodeAggregateIdMapping

static NodeAggregateIdMapping fromArray(array $array)

No description

Parameters

array $array

Return Value

NodeAggregateIdMapping

NodeAggregateId|null getNewNodeAggregateId(NodeAggregateId $oldNodeAggregateId)

No description

Parameters

NodeAggregateId $oldNodeAggregateId

Return Value

NodeAggregateId|null

array jsonSerialize()

No description

Return Value

array

array getAllNewNodeAggregateIds()

No description

Return Value

array