src/Entity/Satisfaction.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SatisfactionRepository;
  4. use App\Traits\DateTrait;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=SatisfactionRepository::class)
  8. */
  9. class Satisfaction
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=255, nullable=true)
  19. */
  20. private $name;
  21. /**
  22. * @ORM\Column(type="string", length=255, nullable=true)
  23. */
  24. private $question1;
  25. /**
  26. * @ORM\Column(type="string", length=255, nullable=true)
  27. */
  28. private $question2;
  29. /**
  30. * @ORM\Column(type="string", length=255, nullable=true)
  31. */
  32. private $question3;
  33. /**
  34. * @ORM\Column(type="string", length=255, nullable=true)
  35. */
  36. private $question4;
  37. /**
  38. * @ORM\Column(type="string", length=255)
  39. */
  40. private $email;
  41. /**
  42. * @ORM\Column(type="text", nullable=true)
  43. */
  44. private $message;
  45. /**
  46. * @ORM\ManyToOne(targetEntity=User::class, inversedBy="satisfactions")
  47. */
  48. private $user;
  49. /**
  50. * @ORM\Column(type="integer", nullable=true)
  51. */
  52. private $stars;
  53. use DateTrait;
  54. public function getId(): ?int
  55. {
  56. return $this->id;
  57. }
  58. public function getName(): ?string
  59. {
  60. return $this->name;
  61. }
  62. public function setName( ?string $name ): self
  63. {
  64. $this->name = $name;
  65. return $this;
  66. }
  67. public function getQuestion1(): ?string
  68. {
  69. return $this->question1;
  70. }
  71. public function setQuestion1( ?string $question1 ): self
  72. {
  73. $this->question1 = $question1;
  74. return $this;
  75. }
  76. public function getQuestion2(): ?string
  77. {
  78. return $this->question2;
  79. }
  80. public function setQuestion2( ?string $question2 ): self
  81. {
  82. $this->question2 = $question2;
  83. return $this;
  84. }
  85. public function getQuestion3(): ?string
  86. {
  87. return $this->question3;
  88. }
  89. public function setQuestion3( ?string $question3 ): self
  90. {
  91. $this->question3 = $question3;
  92. return $this;
  93. }
  94. public function getQuestion4(): ?string
  95. {
  96. return $this->question4;
  97. }
  98. public function setQuestion4( ?string $question4 ): self
  99. {
  100. $this->question4 = $question4;
  101. return $this;
  102. }
  103. public function getEmail(): ?string
  104. {
  105. return $this->email;
  106. }
  107. public function setEmail( string $email ): self
  108. {
  109. $this->email = $email;
  110. return $this;
  111. }
  112. public function getMessage(): ?string
  113. {
  114. return $this->message;
  115. }
  116. public function setMessage( ?string $message ): self
  117. {
  118. $this->message = $message;
  119. return $this;
  120. }
  121. public function getUser(): ?User
  122. {
  123. return $this->user;
  124. }
  125. public function setUser( ?User $user ): self
  126. {
  127. $this->user = $user;
  128. return $this;
  129. }
  130. public function getStars(): ?int
  131. {
  132. return $this->stars;
  133. }
  134. public function setStars( ?int $stars ): self
  135. {
  136. $this->stars = $stars;
  137. return $this;
  138. }
  139. }