src/Entity/PollQuestion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PollQuestion
  6.  *
  7.  * @ORM\Table(name="poll_question", indexes={@ORM\Index(name="poll_id", columns={"poll_id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\PollQuestionRepository")
  9.  */
  10. class PollQuestion
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var \DateTime
  22.      *
  23.      * @ORM\Column(name="date_created", type="datetime", nullable=false)
  24.      */
  25.     private $dateCreated;
  26.     /**
  27.      * @var int
  28.      *
  29.      * @ORM\Column(name="status", type="integer", nullable=false, options={"default"="1"})
  30.      */
  31.     private $status 1;
  32.     /**
  33.      * @var \Poll
  34.      *
  35.      * @ORM\ManyToOne(targetEntity="Poll")
  36.      * @ORM\JoinColumns({
  37.      *   @ORM\JoinColumn(name="poll_id", referencedColumnName="id")
  38.      * })
  39.      */
  40.     private $poll;
  41.     /**
  42.      * @var int
  43.      *
  44.      * @ORM\Column(name="sort", type="integer")
  45.      */
  46.     private $sort;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getDateCreated(): ?\DateTimeInterface
  52.     {
  53.         return $this->dateCreated;
  54.     }
  55.     public function setDateCreated(\DateTimeInterface $dateCreated): self
  56.     {
  57.         $this->dateCreated $dateCreated;
  58.         return $this;
  59.     }
  60.     public function getStatus(): ?int
  61.     {
  62.         return $this->status;
  63.     }
  64.     public function setStatus(int $status): self
  65.     {
  66.         $this->status $status;
  67.         return $this;
  68.     }
  69.     public function getPoll(): ?Poll
  70.     {
  71.         return $this->poll;
  72.     }
  73.     public function setPoll(?Poll $poll): self
  74.     {
  75.         $this->poll $poll;
  76.         return $this;
  77.     }
  78.     public function getSort(): ?int
  79.     {
  80.         return $this->sort;
  81.     }
  82.     public function setSort(int $sort): self
  83.     {
  84.         $this->sort $sort;
  85.         return $this;
  86.     }
  87. }