diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregate.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregate.php index dae8ad0d0ae..95474721744 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregate.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregate.php @@ -91,16 +91,6 @@ public function occupiesDimensionSpacePoint(OriginDimensionSpacePoint $originDim return $this->occupiedDimensionSpacePoints->contains($originDimensionSpacePoint); } - /** - * Returns the nodes belonging to this aggregate, i.e. the "real materialized" node rows. - * - * @return iterable - */ - public function getNodes(): iterable - { - return array_values($this->nodesByOccupiedDimensionSpacePoint); - } - public function getNodeByOccupiedDimensionSpacePoint( OriginDimensionSpacePoint $occupiedDimensionSpacePoint ): Node { @@ -168,4 +158,15 @@ public function getDimensionSpacePointsTaggedWith(SubtreeTag $subtreeTag): Dimen { return $this->dimensionSpacePointsBySubtreeTags->forSubtreeTag($subtreeTag); } + + /** + * Returns the nodes belonging to this aggregate, i.e. the "real materialized" node rows. + * + * @internal Using this method to access all occupied nodes or possibly extract a single arbitrary node is not intended for use outside the core. + * @return iterable + */ + public function getNodes(): iterable + { + return array_values($this->nodesByOccupiedDimensionSpacePoint); + } }