From b205bf03b2c79ef1ca177b5c273325c29ea7dacb Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:13:36 +0200 Subject: [PATCH] TASK: Make `NodeAggregate::getNodes` internal --- .../Projection/ContentGraph/NodeAggregate.php | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) 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); + } }