Implement HasCentersInterface in Household class (will fix access control)

The Household class now implements the HasCentersInterface and includes a method to get all centers associated with current persons in the household. This enhancement will allow fetching of all household-associated centers easier.
This commit is contained in:
2024-04-10 10:37:50 +02:00
parent a3efae7831
commit 0b40d807bc
3 changed files with 23 additions and 5 deletions

View File

@@ -82,10 +82,7 @@ class Center implements HasCenterInterface, \Stringable
return $this->groupCenters;
}
/**
* @return int
*/
public function getId()
public function getId(): null|int
{
return $this->id;
}