mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Historique ménage pour une personne
This commit is contained in:
@@ -206,4 +206,13 @@ class HouseholdMember
|
||||
{
|
||||
return $this->holder;
|
||||
}
|
||||
|
||||
public function isCurrent(\DateTimeImmutable $at = null): bool
|
||||
{
|
||||
$at = NULL === $at ? new \DateTimeImmutable('now'): $at;
|
||||
|
||||
return $this->getStartDate() < $at && (
|
||||
NULL === $this->getEndDate() || $at < $this->getEndDate()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user