diff --git a/src/MicroPlate.php b/src/MicroPlate.php index 6de0fe2..fefc5c5 100644 --- a/src/MicroPlate.php +++ b/src/MicroPlate.php @@ -7,6 +7,8 @@ /** * @template TWell * @template TCoordinateSystem of CoordinateSystem + * + * @phpstan-type WellsCollection Collection, TWell}> */ class MicroPlate { @@ -16,7 +18,7 @@ class MicroPlate public CoordinateSystem $coordinateSystem; /** - * @var Collection, TWell}> + * @var WellsCollection */ private Collection $wells; @@ -40,6 +42,9 @@ public function addWell(Coordinate $coordinate, $content): void $this->wells->add([$coordinate, $content]); } + /** + * @return WellsCollection + */ public function getWells(): Collection { return $this->wells;