groups = new ArrayCollection(); $this->values = new ArrayCollection(); $this->medias = new ArrayCollection(); $this->options = new ArrayCollection(); $this->pageDuplicates = new ArrayCollection(); $this->versionWorkflow = 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 getGroups(): ?Collection { return $this->groups; } /** * @see UserInterface */ public function addGroup(GroupProject $group): self { if (!$this->groups->contains($group)) { $this->groups[] = $group; } return $this; } public function removeGroup(GroupProject $group): self { if ($this->groups->contains($group)) { $this->groups->removeElement($group); } return $this; } public function getExport(): Exports { return $this->export; } public function setExport(Exports $export): self { $this->export = $export; return $this; } /** * @return Collection|Value[] */ public function getValues(): Collection { return $this->values; } /** * @return Collection|ElementMedia[] */ public function getMedias(): Collection { return $this->medias; } /** * @return Collection|ExportTemplateOption[] */ public function getOptions(): Collection { return $this->options; } /** * @return bool */ public function getArchived(): bool { return $this->archived; } /** * @param bool $archived * * @return self */ public function setArchived(bool $archived): self { $this->archived = $archived; return $this; } /** * @return int */ public function getIdUser(): int { return $this->idUser; } /** * @param int $idUser * * @return self */ public function setIdUser(int $idUser): self { $this->idUser = $idUser; return $this; } /** * @return int|null */ public function getIdOwnergroup(): ?int { return $this->idOwnerGroup; } /** * @param int|null $idOwnerGroup * * @return self */ public function setIdOwnerGroup(?int $idOwnerGroup): self { $this->idOwnerGroup = $idOwnerGroup; return $this; } public function getPageDuplicates(): ?Collection { return $this->pageDuplicates; } public function addPageDuplicate(PageDuplicate $pageDuplicate): self { if (!$this->pageDuplicates->contains($pageDuplicate)) { $this->pageDuplicates[] = $pageDuplicate; } return $this; } public function removePageDuplicate(PageDuplicate $pageDuplicate): self { if ($this->pageDuplicates->contains($pageDuplicate)) { $this->pageDuplicates->removeElement($pageDuplicate); } return $this; } public function getVersionWorkflowOptions(): ?Collection { return $this->versionWorkflow; } }