src/Entity/Question.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\QuestionRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Question.
  8. *
  9. * @ORM\Table(name="Question")
  10. *
  11. * @ORM\Entity(repositoryClass=QuestionRepository::class)
  12. */
  13. class Question
  14. {
  15. /**
  16. * @var int
  17. *
  18. * @ORM\Column(name="id", type="integer")
  19. *
  20. * @ORM\Id
  21. *
  22. * @ORM\GeneratedValue(strategy="AUTO")
  23. */
  24. private $id;
  25. /**
  26. * @var string
  27. *
  28. * @ORM\Column(name="token", type="string", length=255)
  29. */
  30. private $token;
  31. /**
  32. * @var int
  33. *
  34. * @ORM\Column(name="surveyls_survey_id", type="integer")
  35. */
  36. private $surveylsSurveyId;
  37. /**
  38. * @ORM\ManyToOne(targetEntity="Structure", inversedBy="questions")
  39. *
  40. * @ORM\JoinColumn(name="structure_id", referencedColumnName="id")
  41. */
  42. private $structure;
  43. /**
  44. * Get id.
  45. *
  46. * @return int
  47. */
  48. public function getId()
  49. {
  50. return $this->id;
  51. }
  52. /**
  53. * Set token.
  54. *
  55. * @param string $token
  56. */
  57. public function setToken($token): static
  58. {
  59. $this->token = $token;
  60. return $this;
  61. }
  62. /**
  63. * Get token.
  64. *
  65. * @return string
  66. */
  67. public function getToken()
  68. {
  69. return $this->token;
  70. }
  71. /**
  72. * Set surveylsSurveyId.
  73. *
  74. * @param int $surveylsSurveyId
  75. */
  76. public function setSurveylsSurveyId($surveylsSurveyId): static
  77. {
  78. $this->surveylsSurveyId = $surveylsSurveyId;
  79. return $this;
  80. }
  81. /**
  82. * Get surveylsSurveyId.
  83. *
  84. * @return int
  85. */
  86. public function getSurveylsSurveyId()
  87. {
  88. return $this->surveylsSurveyId;
  89. }
  90. /**
  91. * Set structure.
  92. */
  93. public function setStructure(?Structure $structure = null): static
  94. {
  95. $this->structure = $structure;
  96. return $this;
  97. }
  98. /**
  99. * Get structure.
  100. *
  101. * @return Structure
  102. */
  103. public function getStructure()
  104. {
  105. return $this->structure;
  106. }
  107. }