comment = new CommentEmbeddable(); $this->persons = new ArrayCollection(); $this->nonProfessionals = new ArrayCollection(); $this->professionals = new ArrayCollection(); $this->invites = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getSendSMS(): ?bool { return $this->sendSMS; } public function setSendSMS(?bool $sendSMS): self { $this->sendSMS = $sendSMS; return $this; } public function getComment(): CommentEmbeddable { return $this->comment; } public function setComment(CommentEmbeddable $comment): self { $this->comment = $comment; return $this; } public function getStartDate(): ?\DateTimeImmutable { return $this->startDate; } public function setStartDate(\DateTimeImmutable $startDate): self { $this->startDate = $startDate; return $this; } public function getEndDate(): ?\DateTimeImmutable { return $this->endDate; } public function setEndDate(\DateTimeImmutable $endDate): self { $this->endDate = $endDate; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus(string $status): self { $this->status = $status; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getAccompanyingPeriod(): ?AccompanyingPeriod { return $this->accompanyingPeriod; } public function setAccompanyingPeriod(?AccompanyingPeriod $accompanyingPeriod): self { $this->accompanyingPeriod = $accompanyingPeriod; return $this; } public function getMainUser(): ?User { return $this->mainUser; } public function setMainUser(?User $mainUser): self { $this->mainUser = $mainUser; return $this; } /** * @return Collection|Person[] */ public function getPersons(): Collection { return $this->persons; } public function addPerson(Person $person): self { if (!$this->persons->contains($person)) { $this->persons[] = $person; } return $this; } public function removePerson(Person $person): self { $this->persons->removeElement($person); return $this; } /** * @return Collection|Person[] */ public function getNonProfessionals(): Collection { return $this->nonProfessionals; } public function addNonProfessional(Person $nonProfessional): self { if (!$this->nonProfessionals->contains($nonProfessional)) { $this->nonProfessionals[] = $nonProfessional; } return $this; } public function removeNonProfessional(Person $nonProfessional): self { $this->nonProfessionals->removeElement($nonProfessional); return $this; } /** * @return Collection|ThirdParty[] */ public function getProfessionals(): Collection { return $this->professionals; } public function addProfessional(ThirdParty $professional): self { if (!$this->professionals->contains($professional)) { $this->professionals[] = $professional; } return $this; } public function removeProfessional(ThirdParty $professional): self { $this->professionals->removeElement($professional); return $this; } /** * @return Collection|Invite[] */ public function getInvites(): Collection { return $this->invites; } public function addInvite(Invite $invite): self { if (!$this->invites->contains($invite)) { $this->invites[] = $invite; } return $this; } public function removeInvite(Invite $invite): self { $this->invites->removeElement($invite); return $this; } public function getCancelReason(): ?CancelReason { return $this->cancelReason; } public function setCancelReason(?CancelReason $cancelReason): self { $this->cancelReason = $cancelReason; return $this; } public function getCalendarRange(): ?CalendarRange { return $this->calendarRange; } public function setCalendarRange(?CalendarRange $calendarRange): self { $this->calendarRange = $calendarRange; return $this; } public function getActivity(): ?Activity { return $this->activity; } public function setActivity(?Activity $activity): self { $this->activity = $activity; return $this; } }