Skip to content

Commit

Permalink
TASK: Revert assertion inside of aggregate __construct
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed May 13, 2024
1 parent b205bf0 commit bb6312f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
* @param OriginDimensionSpacePointSet $occupiedDimensionSpacePoints dimension space points this aggregate occupies
* @param non-empty-array<string,Node> $nodesByOccupiedDimensionSpacePoint At least one node will be occupied.
* @param CoverageByOrigin $coverageByOccupant
* @param DimensionSpacePointSet $coveredDimensionSpacePoints At least one node will be covered.
* @param non-empty-array<string,Node> $nodesByCoveredDimensionSpacePoint
* @param DimensionSpacePointSet $coveredDimensionSpacePoints This node aggregate will cover at least one dimension space.
* @param non-empty-array<string,Node> $nodesByCoveredDimensionSpacePoint At least one node will be covered.
* @param OriginByCoverage $occupationByCovered
* @param DimensionSpacePointsBySubtreeTags $dimensionSpacePointsBySubtreeTags dimension space points for every subtree tag this aggregate is *explicitly* tagged with (excluding inherited tags)
*/
Expand All @@ -81,9 +81,6 @@ public function __construct(
private OriginByCoverage $occupationByCovered,
private DimensionSpacePointsBySubtreeTags $dimensionSpacePointsBySubtreeTags,
) {
// this nodeAggregate can only exist if it at least contains one node.
assert($this->nodesByOccupiedDimensionSpacePoint !== []);
assert($this->nodesByCoveredDimensionSpacePoint !== []);
}

public function occupiesDimensionSpacePoint(OriginDimensionSpacePoint $originDimensionSpacePoint): bool
Expand Down

0 comments on commit bb6312f

Please sign in to comment.