answers = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set createdAt * * @param datetime $createdAt * @return Poll */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return datetime */ public function getCreatedAt() { return $this->createdAt; } /** * Set updatedAt * * @param datetime $updatedAt * @return Poll */ public function setUpdatedAt($updatedAt = null) { $this->updatedAt = $updatedAt; return $this; } /** * Get updatedAt * * @return datetime */ public function getUpdatedAt() { return $this->updatedAt; } /** * Set updateReason * * @param text $updateReason * @return Poll */ public function setUpdateReason($updateReason = null) { $this->updateReason = $updateReason; return $this; } /** * Get updateReason * * @return text */ public function getUpdateReason() { return $this->updateReason; } /** * Set pollEnd * * @param datetime $pollEnd * @return Poll */ public function setPollEnd($pollEnd = null) { $this->pollEnd = $pollEnd; return $this; } /** * Get pollEnd * * @return datetime */ public function getPollEnd() { return $this->pollEnd; } /** * Add answers * * @param KekRozsak\FrontBundle\Entity\PollAnswer $answers * @return Poll */ public function addPollAnswer(\KekRozsak\FrontBundle\Entity\PollAnswer $answers) { $this->answers[] = $answers; return $this; } /** * Get answers * * @return Doctrine\Common\Collections\Collection */ public function getAnswers() { return $this->answers; } /** * Set createdBy * * @param KekRozsak\FrontBundle\Entity\User $createdBy * @return Poll */ public function setCreatedBy(\KekRozsak\FrontBundle\Entity\User $createdBy) { $this->createdBy = $createdBy; return $this; } /** * Get createdBy * * @return KekRozsak\FrontBundle\Entity\User */ public function getCreatedBy() { return $this->createdBy; } /** * Set updatedBy * * @param KekRozsak\FrontBundle\Entity\User $updatedBy * @return Poll */ public function setUpdatedBy(\KekRozsak\FrontBundle\Entity\User $updatedBy = null) { $this->updatedBy = $updatedBy; return $this; } /** * Get updatedBy * * @return KekRozsak\FrontBundle\Entity\User */ public function getUpdatedBy() { return $this->updatedBy; } /** * @var text $text * @ORM\Column(type="text", nullable=false) */ private $text; /** * @var boolean $anyoneCanAddAnswers * @ORM\Column(type="boolean", nullable=false) */ private $anyoneCanAddAnswers; /** * Set text * * @param text $text * @return Poll */ public function setText($text) { $this->text = $text; return $this; } /** * Get text * * @return text */ public function getText() { return $this->text; } /** * Set anyoneCanAddAnswers * * @param boolean $anyoneCanAddAnswers * @return Poll */ public function setAnyoneCanAddAnswers($anyoneCanAddAnswers) { $this->anyoneCanAddAnswers = $anyoneCanAddAnswers; return $this; } /** * Get anyoneCanAddAnswers * * @return boolean */ public function getAnyoneCanAddAnswers() { return $this->anyoneCanAddAnswers; } }