src/Entity/System/CustomerFormAnswers.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\System;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table(name="customer_form_answers")
  7. *
  8. * @ORM\Entity(repositoryClass="App\Repository\System\CustomerFormAnswersRepository")
  9. */
  10. class CustomerFormAnswers
  11. {
  12. /**
  13. * @ORM\Id
  14. *
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. *
  17. * @ORM\Column(type="integer", name="id")
  18. */
  19. private int $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Entity\System\FormAnswers")
  22. *
  23. * @ORM\JoinColumn(nullable=false, name="answer_id", referencedColumnName="id")
  24. */
  25. private FormAnswers $answerId;
  26. /**
  27. * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer")
  28. *
  29. * @ORM\JoinColumn(nullable=false, name="customer_id", referencedColumnName="id_customer")
  30. */
  31. private Customer $customer;
  32. /**
  33. * @ORM\Column(type="string", nullable=true)
  34. */
  35. private ?string $value;
  36. public function getId(): int
  37. {
  38. return $this->id;
  39. }
  40. public function setId(int $id): CustomerFormAnswers
  41. {
  42. $this->id = $id;
  43. return $this;
  44. }
  45. public function getAnswer(): FormAnswers
  46. {
  47. return $this->answerId;
  48. }
  49. public function setAnswerId(FormAnswers $answer): CustomerFormAnswers
  50. {
  51. $this->answerId = $answer;
  52. return $this;
  53. }
  54. public function getCustomer(): Customer
  55. {
  56. return $this->customer;
  57. }
  58. public function setCustomer(Customer $customer): CustomerFormAnswers
  59. {
  60. $this->customer = $customer;
  61. return $this;
  62. }
  63. public function getValue(): ?string
  64. {
  65. return $this->value;
  66. }
  67. public function setValue(?string $value): CustomerFormAnswers
  68. {
  69. $this->value = $value;
  70. return $this;
  71. }
  72. }