final class GraphState implements IteratorAggregate, JsonSerializable (View source)

internal  
 

The graph state describing all node aggregates and their direct connections within a workspace

Methods

static GraphState
forNodeAggregateIdsWorkSpaceNameAndContentRepository(array $nodeAggregateIds, ContentGraphInterface $contentGraph, DimensionSpacePointSet $dimensionSpacePointSet)

No description

void
registerItem(NodeAggregateId $nodeAggregateId, LocalGraphState $item)

No description

diff(GraphState|null $other, WorkspaceName|null $expectedWorkspaceName = null)

No description

getIterator()

No description

array
jsonSerialize()

No description

Details

static GraphState forNodeAggregateIdsWorkSpaceNameAndContentRepository(array $nodeAggregateIds, ContentGraphInterface $contentGraph, DimensionSpacePointSet $dimensionSpacePointSet)

No description

Parameters

array $nodeAggregateIds
ContentGraphInterface $contentGraph
DimensionSpacePointSet $dimensionSpacePointSet

Return Value

GraphState

void registerItem(NodeAggregateId $nodeAggregateId, LocalGraphState $item)

No description

Parameters

NodeAggregateId $nodeAggregateId
LocalGraphState $item

Return Value

void

GraphStateDiff|null diff(GraphState|null $other, WorkspaceName|null $expectedWorkspaceName = null)

No description

Parameters

GraphState|null $other
WorkspaceName|null $expectedWorkspaceName

if the diff should expect a certain workspace name for evaluating the other state

Return Value

GraphStateDiff|null

A graph state containing all differing elements or nothing if nothing is changed

Traversable getIterator()

No description

Return Value

Traversable

array jsonSerialize()

No description

Return Value

array