final class TargetLocationInSubgraph (View source)

internal  to be used by command handlers
 

A structurally valid target location of a node in a subgraph, meaning

  • the parent, if given, exists
  • the succeeding sibling, if given, exists and is a child of the parent if given or a sibling of the node if not
  • the preceding sibling, if given, exists and is a child of the parent if given or a sibling of the node if not

Does not evaluate node type constraints

Methods

create(NodeAggregateId $nodeAggregateId, DimensionSpacePoint $dimensionSpacePoint, NodeAggregateId|null $parentNodeAggregateId, NodeAggregateId|null $succeedingSiblingNodeAggregateId, NodeAggregateId|null $precedingSiblingNodeAggregateId, ContentGraphInterface $contentGraph)

No description

createForTetheredChildNodeAggregate(NodeAggregateId $parentNodeAggregateId, NodeAggregateId $tetheredChildNodeAggregateId, ContentSubgraphInterface $sourceSubgraph)

No description

tryResolveInterdimensionalSibling(ContentSubgraphInterface $targetSubgraph, ContentSubgraphInterface $sourceSubgraph, bool $allowNullSibling)

No description

Details

static TargetLocationInSubgraph create(NodeAggregateId $nodeAggregateId, DimensionSpacePoint $dimensionSpacePoint, NodeAggregateId|null $parentNodeAggregateId, NodeAggregateId|null $succeedingSiblingNodeAggregateId, NodeAggregateId|null $precedingSiblingNodeAggregateId, ContentGraphInterface $contentGraph)

No description

Parameters

NodeAggregateId $nodeAggregateId
DimensionSpacePoint $dimensionSpacePoint
NodeAggregateId|null $parentNodeAggregateId
NodeAggregateId|null $succeedingSiblingNodeAggregateId
NodeAggregateId|null $precedingSiblingNodeAggregateId
ContentGraphInterface $contentGraph

Return Value

TargetLocationInSubgraph

static TargetLocationInSubgraph createForTetheredChildNodeAggregate(NodeAggregateId $parentNodeAggregateId, NodeAggregateId $tetheredChildNodeAggregateId, ContentSubgraphInterface $sourceSubgraph)

No description

Parameters

NodeAggregateId $parentNodeAggregateId
NodeAggregateId $tetheredChildNodeAggregateId
ContentSubgraphInterface $sourceSubgraph

Return Value

TargetLocationInSubgraph

InterdimensionalSibling|null tryResolveInterdimensionalSibling(ContentSubgraphInterface $targetSubgraph, ContentSubgraphInterface $sourceSubgraph, bool $allowNullSibling)

No description

Parameters

ContentSubgraphInterface $targetSubgraph
ContentSubgraphInterface $sourceSubgraph
bool $allowNullSibling

Return Value

InterdimensionalSibling|null