users = new ArrayCollection(); } // == CODE A NE PAS REGENERER public function setId(int $id): self { $this->id = $id; return $this; } // == FIN DU CODE A NE PAS REGENERER public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): self { $this->email = $email; return $this; } public function isIsopen(): ?bool { return $this->isopen; } public function setIsopen(bool $isopen): self { $this->isopen = $isopen; return $this; } public function isIsworkgroup(): ?bool { return $this->isworkgroup; } public function setIsworkgroup(bool $isworkgroup): self { $this->isworkgroup = $isworkgroup; return $this; } public function getApikey(): ?string { return $this->apikey; } public function setApikey(string $apikey): self { $this->apikey = $apikey; return $this; } public function getLdapfilter(): ?string { return $this->ldapfilter; } public function setLdapfilter(?string $ldapfilter): self { $this->ldapfilter = $ldapfilter; return $this; } public function getAttributes(): ?string { return $this->attributes; } public function setAttributes(?string $attributes): self { $this->attributes = $attributes; return $this; } public function getIdexternal(): ?string { return $this->idexternal; } public function setIdexternal(?string $idexternal): self { $this->idexternal = $idexternal; return $this; } public function getOwner(): ?User { return $this->owner; } public function setOwner(?User $owner): self { $this->owner = $owner; return $this; } /** * @return Collection */ public function getUsers(): Collection { return $this->users; } public function addUser(UserGroup $user): self { if (!$this->users->contains($user)) { $this->users[] = $user; $user->setGroup($this); } return $this; } public function removeUser(UserGroup $user): self { if ($this->users->removeElement($user)) { // set the owning side to null (unless already changed) if ($user->getGroup() === $this) { $user->setGroup(null); } } return $this; } }