final class LocalSubgraphState (View source)

internal  
 

The local subgraph state describing a node and its direct connections Comparison is done on complete node state as node identity may not be guaranteed by graph adapters

Methods

static LocalSubgraphState|null
tryForNodeAggregateIdAndSubgraph(NodeAggregateId $nodeAggregateId, ContentSubgraphInterface $subgraph)

No description

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

No description

Details

static LocalSubgraphState|null tryForNodeAggregateIdAndSubgraph(NodeAggregateId $nodeAggregateId, ContentSubgraphInterface $subgraph)

No description

Parameters

NodeAggregateId $nodeAggregateId
ContentSubgraphInterface $subgraph

Return Value

LocalSubgraphState|null

LocalSubgraphStateDiff|null diff(LocalSubgraphState|null $other, WorkspaceName|null $expectedWorkspaceName = null)

No description

Parameters

LocalSubgraphState|null $other
WorkspaceName|null $expectedWorkspaceName

Return Value

LocalSubgraphStateDiff|null

A local subgraph state diff containing all differing elements or null if nothing is changed