Skip to content

Commit

Permalink
improve sample to note setter as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 15, 2024
1 parent cf948f4 commit ea1077c
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class SomeClass
* @var Collection|Trainer[]
*/
private $trainings = [];
public function setTrainings($trainings)
{
$this->trainings = $trainings;
}
}
CODE_SAMPLE
,
Expand All @@ -83,6 +88,14 @@ class SomeClass
* @var Collection<int, Trainer>
*/
private $trainings = [];
/**
* @param Collection<int, Trainer> $trainings
*/
public function setTrainings($trainings)
{
$this->trainings = $trainings;
}
}
CODE_SAMPLE
),
Expand Down

0 comments on commit ea1077c

Please sign in to comment.