src/Entity/Core/Dictate/DictateResponse.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Core\Dictate;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table('dictate_response')]
  6. #[ORM\Entity(repositoryClass: DictateResponseRepository::class)]
  7. class DictateResponse
  8. {
  9. /**
  10. * @var int
  11. */
  12. #[ORM\Column(name: 'id', type: 'integer')]
  13. #[ORM\Id]
  14. #[ORM\GeneratedValue(strategy: 'AUTO')]
  15. private $id;
  16. /**
  17. * @var DictateUnit
  18. */
  19. #[ORM\JoinColumn(name: 'dictate_unit', referencedColumnName: 'id', onDelete: 'CASCADE')]
  20. #[ORM\ManyToOne(targetEntity: DictateUnit::class, inversedBy: 'dictateResponses')]
  21. private $dictateUnit;
  22. /**
  23. * @var Dictate
  24. */
  25. #[ORM\JoinColumn(name: 'dictate', referencedColumnName: 'id')]
  26. #[ORM\ManyToOne(targetEntity: Dictate::class)]
  27. private $dictate;
  28. /**
  29. * @var DateTime
  30. */
  31. #[ORM\Column(name: 'createdAt', type: 'datetime', nullable: true)]
  32. private $createdAt;
  33. /**
  34. * @var string
  35. */
  36. #[ORM\Column(name: 'answer_text', type: 'text', nullable: true)]
  37. private $answerText;
  38. public function getId(): int
  39. {
  40. return $this->id;
  41. }
  42. public function setId(int $id): void
  43. {
  44. $this->id = $id;
  45. }
  46. public function getDictateUnit(): DictateUnit
  47. {
  48. return $this->dictateUnit;
  49. }
  50. public function setDictateUnit(DictateUnit $dictateUnit): void
  51. {
  52. $this->dictateUnit = $dictateUnit;
  53. }
  54. public function getDictate(): Dictate
  55. {
  56. return $this->dictate;
  57. }
  58. public function setDictate(Dictate $dictate): void
  59. {
  60. $this->dictate = $dictate;
  61. }
  62. /**
  63. * @return DateTime
  64. */
  65. public function getCreatedAt(): DateTime
  66. {
  67. return $this->createdAt;
  68. }
  69. /**
  70. * @param DateTime $createdAt
  71. */
  72. public function setCreatedAt(DateTime $createdAt): void
  73. {
  74. $this->createdAt = $createdAt;
  75. }
  76. public function getAnswerText(): string
  77. {
  78. return $this->answerText;
  79. }
  80. public function setAnswerText(string $answerText): void
  81. {
  82. $this->answerText = $answerText;
  83. }
  84. }