src/Entity/SurveyContributionDateTimeAnswer.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\SurveyContributionDateTimeAnswerRepository")
  7.  */
  8. class SurveyContributionDateTimeAnswer
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      * @Groups({"surveyContribution:read"})
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var SurveyContributionQuestion
  19.      *
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\SurveyContributionQuestion", inversedBy="contributionDateTimeAnswers")
  21.      * @ORM\JoinColumn(name="contribution_question_id", referencedColumnName="id",onDelete="SET NULL")
  22.      */
  23.     private $contributionQuestion;
  24.     /**
  25.      * @var DateTimeTypeAnswer
  26.      *
  27.      * @ORM\ManyToOne(targetEntity="App\Entity\DateTimeTypeAnswer")
  28.      * @Groups({"surveyContribution:read"})
  29.      */
  30.     private $dateTimeTypeAnswer;
  31.     /**
  32.      * @ORM\Column(type="datetime", nullable=true)
  33.      * @Groups({"surveyContribution:read"})
  34.      */
  35.     private $eventDate;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      * @Groups({"surveyContribution:read"})
  39.      */
  40.     private $eventTime;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getContributionQuestion(): ?SurveyContributionQuestion
  46.     {
  47.         return $this->contributionQuestion;
  48.     }
  49.     public function setContributionQuestion(?SurveyContributionQuestion $contributionQuestion): self
  50.     {
  51.         $this->contributionQuestion $contributionQuestion;
  52.         return $this;
  53.     }
  54.     public function getDateTimeTypeAnswer(): ?DateTimeTypeAnswer
  55.     {
  56.         return $this->dateTimeTypeAnswer;
  57.     }
  58.     public function setDateTimeTypeAnswer(?DateTimeTypeAnswer $dateTimeTypeAnswer): self
  59.     {
  60.         $this->dateTimeTypeAnswer $dateTimeTypeAnswer;
  61.         return $this;
  62.     }
  63.     // public function getEventDate(): ?string
  64.     // {
  65.     //     return $this->eventDate;
  66.     // }
  67.     // public function setEventDate(?string $eventDate): self
  68.     // {
  69.     //     $this->eventDate = $eventDate;
  70.     //     return $this;
  71.     // }
  72.     // public function getEventHours(): ?string
  73.     // {
  74.     //     return $this->eventHours;
  75.     // }
  76.     // public function setEventHours(?string $eventHours): self
  77.     // {
  78.     //     $this->eventHours = $eventHours;
  79.     //     return $this;
  80.     // }
  81.     // public function getEventMinutes(): ?string
  82.     // {
  83.     //     return $this->eventMinutes;
  84.     // }
  85.     // public function setEventMinutes(?string $eventMinutes): self
  86.     // {
  87.     //     $this->eventMinutes = $eventMinutes;
  88.     //     return $this;
  89.     // }
  90.     // public function getEventAmpm(): ?string
  91.     // {
  92.     //     return $this->eventAmpm;
  93.     // }
  94.     // public function setEventAmpm(?string $eventAmpm): self
  95.     // {
  96.     //     $this->eventAmpm = $eventAmpm;
  97.     //     return $this;
  98.     // }
  99.     public function getEventDate(): ?\DateTimeInterface
  100.     {
  101.         return $this->eventDate;
  102.     }
  103.     public function setEventDate(?\DateTimeInterface $eventDate): self
  104.     {
  105.         $this->eventDate $eventDate;
  106.         return $this;
  107.     }
  108.     public function getEventTime(): ?\DateTimeInterface
  109.     {
  110.         return $this->eventTime;
  111.     }
  112.     public function setEventTime(?\DateTimeInterface $eventTime): self
  113.     {
  114.         $this->eventTime $eventTime;
  115.         return $this;
  116.     }
  117. }