src/CoreBundle/Entity/DictateResponse.php line 12

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