users = new ArrayCollection(); $this->groupUsers = new ArrayCollection(); } /** * @return Collection|UserInterface[] */ public function getUsers(): Collection { return $this->users; } public function addUser(UserInterface $user): self { if (!$this->users->contains($user)) { $this->users[] = $user; } return $this; } public function removeUser(UserInterface $user): self { if ($this->users->contains($user)) { $this->users->removeElement($user); } return $this; } /** * @return Collection|GroupUserInterface[] */ public function getGroupUsers(): Collection { return $this->groupUsers; } public function addGroupUser(GroupUserInterface $groupUser): self { if (!$this->groupUsers->contains($groupUser)) { $this->groupUsers[] = $groupUser; } return $this; } public function removeGroupUser(GroupUserInterface $groupUser): self { if ($this->groupUsers->contains($groupUser)) { $this->groupUsers->removeElement($groupUser); } return $this; } public function getDateStart(): ?\DateTimeInterface { return $this->dateStart; } public function setDateStart(?\DateTimeInterface $dateStart): self { $this->dateStart = $dateStart; return $this; } public function getDateEnd(): ?\DateTimeInterface { return $this->dateEnd; } public function setDateEnd(?\DateTimeInterface $dateEnd): self { $this->dateEnd = $dateEnd; return $this; } public function getPermanent(): ?bool { return $this->permanent; } public function setPermanent(bool $permanent): self { $this->permanent = $permanent; return $this; } }