<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PollQuestion
*
* @ORM\Table(name="poll_question", indexes={@ORM\Index(name="poll_id", columns={"poll_id"})})
* @ORM\Entity(repositoryClass="App\Repository\PollQuestionRepository")
*/
class PollQuestion
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var \DateTime
*
* @ORM\Column(name="date_created", type="datetime", nullable=false)
*/
private $dateCreated;
/**
* @var int
*
* @ORM\Column(name="status", type="integer", nullable=false, options={"default"="1"})
*/
private $status = 1;
/**
* @var \Poll
*
* @ORM\ManyToOne(targetEntity="Poll")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="poll_id", referencedColumnName="id")
* })
*/
private $poll;
/**
* @var int
*
* @ORM\Column(name="sort", type="integer")
*/
private $sort;
public function getId(): ?int
{
return $this->id;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(\DateTimeInterface $dateCreated): self
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function getPoll(): ?Poll
{
return $this->poll;
}
public function setPoll(?Poll $poll): self
{
$this->poll = $poll;
return $this;
}
public function getSort(): ?int
{
return $this->sort;
}
public function setSort(int $sort): self
{
$this->sort = $sort;
return $this;
}
}