users = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getLdapfilter(): ?string { return $this->ldapfilter; } public function setLdapfilter(?string $ldapfilter): self { $this->ldapfilter = $ldapfilter; return $this; } /** * @return Collection|User[] */ public function getUsers(): Collection { return $this->users; } public function addUser(User $user): self { if (!$this->users->contains($user)) { $this->users[] = $user; $user->addGroup($this); } return $this; } public function removeUser(User $user): self { if ($this->users->contains($user)) { $this->users->removeElement($user); $user->removeGroup($this); } return $this; } public function getIdexternal(): ?string { return $this->idexternal; } public function setIdexternal(?string $idexternal): self { $this->idexternal = $idexternal; return $this; } }