ajout métadonnées membres

This commit is contained in:
2021-06-14 22:30:52 +02:00
parent 41617295c1
commit f827e50431
9 changed files with 270 additions and 0 deletions

View File

@@ -51,6 +51,21 @@ class Household
*/
private Collection $members;
/**
* @ORM\Column(type="text", name="comment_members", options={"default": ""})
*/
private string $commentMembers = "";
/**
* @ORM\Column(type="boolean", name="waiting_for_birth", options={"default": false})
*/
private bool $waitingForBirth = false;
/**
* @ORM\Column(type="date_immutable", name="waiting_for_birth_date", nullable=true, options={"default": null})
*/
private ?\DateTimeImmutable $waitingForBirthDate = null;
public function __construct()
{
$this->addresses = new ArrayCollection();
@@ -206,4 +221,40 @@ class Household
return $this;
}
public function getCommentMembers(): ?string
{
return $this->commentMembers;
}
public function setCommentMembers(string $commentMembers): self
{
$this->commentMembers = $commentMembers;
return $this;
}
public function getWaitingForBirth(): bool
{
return $this->waitingForBirth;
}
public function setWaitingForBirth(bool $waitingForBirth): self
{
$this->waitingForBirth = $waitingForBirth;
return $this;
}
public function getWaitingForBirthDate(): ?\DateTimeImmutable
{
return $this->waitingForBirthDate;
}
public function setWaitingForBirthDate(?\DateTimeImmutable $waitingForBirthDate): self
{
$this->waitingForBirthDate = $waitingForBirthDate;
return $this;
}
}