Skip to content

Commit

Permalink
TASK: Rename to NodeTypeManager::getNodeTypeOfTetheredNode
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed May 13, 2024
1 parent cc3b26b commit aa06847
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function overrideNodeTypes(array $completeNodeTypeConfiguration): void
* @return NodeType
* @throws TetheredNodeNotConfigured if the requested tethered node is not configured. Check via {@see NodeType::hasTetheredNode()}.
*/
public function getTypeOfTetheredNode(NodeTypeName $nodeTypeName, NodeName $tetheredNodeName): NodeType
public function getNodeTypeOfTetheredNode(NodeTypeName $nodeTypeName, NodeName $tetheredNodeName): NodeType
{
$nodeType = $this->requireNodeType($nodeTypeName);
$nameOfTetheredNode = $nodeType->getNodeTypeNameOfTetheredNode($tetheredNodeName);
Expand All @@ -208,6 +208,7 @@ public function getTypeOfTetheredNode(NodeTypeName $nodeTypeName, NodeName $teth
}

/**
* Return an array with child nodes which should be automatically created
* Return an array with child nodes which should be automatically created
*
* @return array<string,NodeType> the key of this array is the name of the child, and the value its NodeType.
Expand Down Expand Up @@ -239,7 +240,7 @@ public function getTetheredNodesConfigurationForNodeType(NodeTypeName $nodeTypeN
public function isNodeTypeAllowedAsChildToTetheredNode(NodeTypeName $parentNodeTypeName, NodeName $tetheredNodeName, NodeTypeName $nodeTypeName): bool
{
try {
$typeOfTetheredNode = $this->getTypeOfTetheredNode($parentNodeTypeName, $tetheredNodeName);
$typeOfTetheredNode = $this->getNodeTypeOfTetheredNode($parentNodeTypeName, $tetheredNodeName);
} catch (TetheredNodeNotConfigured $exception) {
throw new \InvalidArgumentException(
sprintf(
Expand Down

0 comments on commit aa06847

Please sign in to comment.