src/Entity/System/CustomerAnswer.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\System\CustomerAnswerRepository")
  6. *
  7. * @ORM\Table(name="answer_customer", indexes={
  8. *
  9. * @ORM\Index(name="id_answer", columns={"id_answer"}),
  10. * @ORM\Index(name="id_questions", columns={"id_questions"})
  11. * })
  12. */
  13. class CustomerAnswer
  14. {
  15. /**
  16. * @var int
  17. *
  18. * @ORM\Id
  19. *
  20. * @ORM\GeneratedValue(strategy="AUTO")
  21. *
  22. * @ORM\Column(type="integer", name="id_answer_customer")
  23. */
  24. private $id;
  25. /**
  26. * @var int
  27. *
  28. * @ORM\Column(type="integer", name="id_questions")
  29. */
  30. private $questionId;
  31. /**
  32. * @var int|null
  33. *
  34. * @ORM\Column(type="integer", name="id_answer")
  35. */
  36. private $answerId;
  37. /**
  38. * @var Customer
  39. *
  40. * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer")
  41. *
  42. * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer")
  43. */
  44. private $customer;
  45. /**
  46. * @var string|null
  47. *
  48. * @ORM\Column(type="string", length=100, nullable=true)
  49. */
  50. private $value;
  51. /**
  52. * @return int
  53. */
  54. public function getId(): int
  55. {
  56. return $this->id;
  57. }
  58. /**
  59. * @param int $id
  60. *
  61. * @return CustomerAnswer
  62. */
  63. public function setId(int $id): self
  64. {
  65. $this->id = $id;
  66. return $this;
  67. }
  68. /**
  69. * @return int
  70. */
  71. public function getQuestionId(): int
  72. {
  73. return $this->questionId;
  74. }
  75. /**
  76. * @param int $questionId
  77. */
  78. public function setQuestionId(int $questionId): void
  79. {
  80. $this->questionId = $questionId;
  81. }
  82. /**
  83. * @return int|null
  84. */
  85. public function getAnswerId(): ?int
  86. {
  87. return $this->answerId;
  88. }
  89. /**
  90. * @param int|null $answerId
  91. */
  92. public function setAnswerId(?int $answerId): void
  93. {
  94. $this->answerId = $answerId;
  95. }
  96. /**
  97. * @return Customer
  98. */
  99. public function getCustomer(): Customer
  100. {
  101. return $this->customer;
  102. }
  103. /**
  104. * @param Customer $customer
  105. *
  106. * @return CustomerAnswer
  107. */
  108. public function setCustomer(Customer $customer): self
  109. {
  110. $this->customer = $customer;
  111. return $this;
  112. }
  113. /**
  114. * @return string|null
  115. */
  116. public function getValue(): ?string
  117. {
  118. return $this->value;
  119. }
  120. /**
  121. * @param string|null $value
  122. *
  123. * @return CustomerAnswer
  124. */
  125. public function setValue(?string $value): self
  126. {
  127. $this->value = $value;
  128. return $this;
  129. }
  130. }