Skip to content

Commit

Permalink
TASK: Introduce getPropertyConverter to denote that this is really …
Browse files Browse the repository at this point in the history
…internal
  • Loading branch information
mhsdesign committed Dec 2, 2024
1 parent 4353f0f commit ea3eaa6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function build(

$nodeFactory = new NodeFactory(
$projectionFactoryDependencies->contentRepositoryId,
$projectionFactoryDependencies->propertyConverter,
$projectionFactoryDependencies->getPropertyConverter(),
$dimensionSpacePointsRepository
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function build(

$nodeFactory = new NodeFactory(
$projectionFactoryDependencies->contentRepositoryId,
$projectionFactoryDependencies->propertyConverter
$projectionFactoryDependencies->getPropertyConverter()
);

return new HypergraphProjection(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private function __construct(
public NodeTypeManager $nodeTypeManager,
public ContentDimensionSourceInterface $contentDimensionSource,
public InterDimensionalVariationGraph $interDimensionalVariationGraph,
public PropertyConverter $propertyConverter,
private PropertyConverter $propertyConverter,
) {
}

Expand All @@ -52,4 +52,12 @@ public static function create(
$propertyConverter
);
}

/**
* @internal only to be used for custom content graph integrations to build a node property collection
*/
public function getPropertyConverter(): PropertyConverter
{
return $this->propertyConverter;
}
}

0 comments on commit ea3eaa6

Please sign in to comment.