votes = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection|poll[] */ public function getVotes(): Collection { return $this->votes; } public function addVote(poll $vote): self { if (!$this->votes->contains($vote)) { $this->votes[] = $vote; $vote->setStacksOfVotes($this); } return $this; } public function removeVote(poll $vote): self { if ($this->votes->contains($vote)) { $this->votes->removeElement($vote); // set the owning side to null (unless already changed) if ($vote->getStacksOfVotes() === $this) { $vote->setStacksOfVotes(null); } } return $this; } public function getPseudo(): ?string { return $this->pseudo; } public function setPseudo(?string $pseudo): self { $this->pseudo = $pseudo; return $this; } public function getModifierToken(): ?string { return $this->modifierToken; } public function setModifierToken(string $modifierToken): self { $this->modifierToken = $modifierToken; return $this; } public function getOwner(): ?Owner { return $this->owner; } public function setOwner(?Owner $owner): self { $this->owner = $owner; return $this; } }