mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix ::getPersons
.
1. Add more typing informations.
This commit is contained in:
parent
484259c8ab
commit
7595d70ada
@ -653,11 +653,15 @@ class AccompanyingPeriod
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of all persons which are participating to this course
|
* Get a list of all persons which are participating to this course
|
||||||
|
*
|
||||||
|
* @psalm-return Collection<int, Person>
|
||||||
*/
|
*/
|
||||||
public function getPersons(): Collection
|
public function getPersons(): Collection
|
||||||
{
|
{
|
||||||
return $this->participations->map(
|
return $this
|
||||||
function(AccompanyingPeriodParticipation $participation) {
|
->participations
|
||||||
|
->map(
|
||||||
|
static function(AccompanyingPeriodParticipation $participation): Person {
|
||||||
return $participation->getPerson();
|
return $participation->getPerson();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user