comment = new CommentEmbeddable(); } public function getComment(): CommentEmbeddable { return $this->comment; } public function getEndDate(): ?DateTimeImmutable { return $this->endDate; } public function getHousehold(): ?Household { return $this->household; } public function getHouseholdCompositionType(): ?HouseholdCompositionType { return $this->householdCompositionType; } public function getId(): ?int { return $this->id; } public function getNumberOfChildren(): ?int { return $this->numberOfChildren; } public function getStartDate(): ?DateTimeImmutable { return $this->startDate; } public function setComment(CommentEmbeddable $comment): HouseholdComposition { $this->comment = $comment; return $this; } public function setEndDate(?DateTimeImmutable $endDate): HouseholdComposition { $this->endDate = $endDate; if (null !== $this->household) { $this->household->householdCompositionConsistency(); } return $this; } public function setHousehold(?Household $household): HouseholdComposition { $this->household = $household; return $this; } public function setHouseholdCompositionType(?HouseholdCompositionType $householdCompositionType): HouseholdComposition { $this->householdCompositionType = $householdCompositionType; return $this; } public function setNumberOfChildren(?int $numberOfChildren): HouseholdComposition { $this->numberOfChildren = $numberOfChildren; return $this; } public function setStartDate(?DateTimeImmutable $startDate): HouseholdComposition { $this->startDate = $startDate; if (null !== $this->household) { $this->household->householdCompositionConsistency(); } return $this; } }