Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
add WellsCollection stan-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bigelmayr committed Nov 11, 2021
1 parent 8ed4ef1 commit fc66683
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MicroPlate.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/**
* @template TWell
* @template TCoordinateSystem of CoordinateSystem
*
* @phpstan-type WellsCollection Collection<array{Coordinate<TCoordinateSystem>, TWell}>
*/
class MicroPlate
{
Expand All @@ -16,7 +18,7 @@ class MicroPlate
public CoordinateSystem $coordinateSystem;

/**
* @var Collection<array{Coordinate<TCoordinateSystem>, TWell}>
* @var WellsCollection
*/
private Collection $wells;

Expand All @@ -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;
Expand Down

0 comments on commit fc66683

Please sign in to comment.