<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass="App\Repository\SurveyContributionDateTimeAnswerRepository")
*/
class SurveyContributionDateTimeAnswer
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"surveyContribution:read"})
*/
private $id;
/**
* @var SurveyContributionQuestion
*
* @ORM\ManyToOne(targetEntity="App\Entity\SurveyContributionQuestion", inversedBy="contributionDateTimeAnswers")
* @ORM\JoinColumn(name="contribution_question_id", referencedColumnName="id",onDelete="SET NULL")
*/
private $contributionQuestion;
/**
* @var DateTimeTypeAnswer
*
* @ORM\ManyToOne(targetEntity="App\Entity\DateTimeTypeAnswer")
* @Groups({"surveyContribution:read"})
*/
private $dateTimeTypeAnswer;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"surveyContribution:read"})
*/
private $eventDate;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"surveyContribution:read"})
*/
private $eventTime;
public function getId(): ?int
{
return $this->id;
}
public function getContributionQuestion(): ?SurveyContributionQuestion
{
return $this->contributionQuestion;
}
public function setContributionQuestion(?SurveyContributionQuestion $contributionQuestion): self
{
$this->contributionQuestion = $contributionQuestion;
return $this;
}
public function getDateTimeTypeAnswer(): ?DateTimeTypeAnswer
{
return $this->dateTimeTypeAnswer;
}
public function setDateTimeTypeAnswer(?DateTimeTypeAnswer $dateTimeTypeAnswer): self
{
$this->dateTimeTypeAnswer = $dateTimeTypeAnswer;
return $this;
}
// public function getEventDate(): ?string
// {
// return $this->eventDate;
// }
// public function setEventDate(?string $eventDate): self
// {
// $this->eventDate = $eventDate;
// return $this;
// }
// public function getEventHours(): ?string
// {
// return $this->eventHours;
// }
// public function setEventHours(?string $eventHours): self
// {
// $this->eventHours = $eventHours;
// return $this;
// }
// public function getEventMinutes(): ?string
// {
// return $this->eventMinutes;
// }
// public function setEventMinutes(?string $eventMinutes): self
// {
// $this->eventMinutes = $eventMinutes;
// return $this;
// }
// public function getEventAmpm(): ?string
// {
// return $this->eventAmpm;
// }
// public function setEventAmpm(?string $eventAmpm): self
// {
// $this->eventAmpm = $eventAmpm;
// return $this;
// }
public function getEventDate(): ?\DateTimeInterface
{
return $this->eventDate;
}
public function setEventDate(?\DateTimeInterface $eventDate): self
{
$this->eventDate = $eventDate;
return $this;
}
public function getEventTime(): ?\DateTimeInterface
{
return $this->eventTime;
}
public function setEventTime(?\DateTimeInterface $eventTime): self
{
$this->eventTime = $eventTime;
return $this;
}
}