trait NodeTypeChange (View source)

internal  implementation detail of Command Handlers
 

Methods

NodeAggregate
requireProjectedNodeAggregate(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId, ContentRepository $contentRepository)

No description

void
requireConstraintsImposedByAncestorsAreMet(ContentStreamId $contentStreamId, NodeType $nodeType, NodeName|null $nodeName, array $parentNodeAggregateIds, ContentRepository $contentRepository)

No description

void
requireNodeTypeConstraintsImposedByParentToBeMet(NodeType $parentsNodeType, NodeName|null $nodeName, NodeType $nodeType)

No description

bool
areNodeTypeConstraintsImposedByParentValid(NodeType $parentsNodeType, NodeName|null $nodeName, NodeType $nodeType)

No description

void
requireNodeTypeConstraintsImposedByGrandparentToBeMet(NodeType $grandParentsNodeType, NodeName|null $parentNodeName, NodeType $nodeType)

No description

bool
areNodeTypeConstraintsImposedByGrandparentValid(NodeType $grandParentsNodeType, NodeName|null $parentNodeName, NodeType $nodeType)

No description

populateNodeAggregateIds(NodeType $nodeType, NodeAggregateIdsByNodePaths $nodeAggregateIds, NodePath $childPath = null)

No description

Events
createEventsForMissingTetheredNode(NodeAggregate $parentNodeAggregate, Node $parentNode, NodeName $tetheredNodeName, NodeAggregateId $tetheredNodeAggregateId, NodeType $expectedTetheredNodeType, ContentRepository $contentRepository)

No description

Details

abstract protected NodeAggregate requireProjectedNodeAggregate(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId, ContentRepository $contentRepository)

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $nodeAggregateId
ContentRepository $contentRepository

Return Value

NodeAggregate

abstract protected void requireConstraintsImposedByAncestorsAreMet(ContentStreamId $contentStreamId, NodeType $nodeType, NodeName|null $nodeName, array $parentNodeAggregateIds, ContentRepository $contentRepository)

No description

Parameters

ContentStreamId $contentStreamId
NodeType $nodeType
NodeName|null $nodeName
array $parentNodeAggregateIds
ContentRepository $contentRepository

Return Value

void

abstract protected void requireNodeTypeConstraintsImposedByParentToBeMet(NodeType $parentsNodeType, NodeName|null $nodeName, NodeType $nodeType)

No description

Parameters

NodeType $parentsNodeType
NodeName|null $nodeName
NodeType $nodeType

Return Value

void

abstract protected bool areNodeTypeConstraintsImposedByParentValid(NodeType $parentsNodeType, NodeName|null $nodeName, NodeType $nodeType)

No description

Parameters

NodeType $parentsNodeType
NodeName|null $nodeName
NodeType $nodeType

Return Value

bool

abstract protected void requireNodeTypeConstraintsImposedByGrandparentToBeMet(NodeType $grandParentsNodeType, NodeName|null $parentNodeName, NodeType $nodeType)

No description

Parameters

NodeType $grandParentsNodeType
NodeName|null $parentNodeName
NodeType $nodeType

Return Value

void

abstract protected bool areNodeTypeConstraintsImposedByGrandparentValid(NodeType $grandParentsNodeType, NodeName|null $parentNodeName, NodeType $nodeType)

No description

Parameters

NodeType $grandParentsNodeType
NodeName|null $parentNodeName
NodeType $nodeType

Return Value

bool

abstract static protected NodeAggregateIdsByNodePaths populateNodeAggregateIds(NodeType $nodeType, NodeAggregateIdsByNodePaths $nodeAggregateIds, NodePath $childPath = null)

No description

Parameters

NodeType $nodeType
NodeAggregateIdsByNodePaths $nodeAggregateIds
NodePath $childPath

Return Value

NodeAggregateIdsByNodePaths

abstract protected Events createEventsForMissingTetheredNode(NodeAggregate $parentNodeAggregate, Node $parentNode, NodeName $tetheredNodeName, NodeAggregateId $tetheredNodeAggregateId, NodeType $expectedTetheredNodeType, ContentRepository $contentRepository)

No description

Parameters

NodeAggregate $parentNodeAggregate
Node $parentNode
NodeName $tetheredNodeName
NodeAggregateId $tetheredNodeAggregateId
NodeType $expectedTetheredNodeType
ContentRepository $contentRepository

Return Value

Events