src/Entity/FaqDirecteur.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FaqDirecteurRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=FaqDirecteurRepository::class)
  7. */
  8. class FaqDirecteur
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255, nullable=true)
  18. */
  19. private $auteur;
  20. /**
  21. * @ORM\Column(type="text")
  22. */
  23. private $question;
  24. /**
  25. * @ORM\Column(type="text", nullable=true)
  26. */
  27. private $reponse;
  28. /**
  29. * @ORM\Column(type="datetime_immutable")
  30. */
  31. private $createdAt;
  32. public function __construct()
  33. {
  34. $this->createdAt = new \DateTimeImmutable();
  35. }
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getAuteur(): ?string
  41. {
  42. return $this->auteur;
  43. }
  44. public function setAuteur(?string $auteur): self
  45. {
  46. $this->auteur = $auteur;
  47. return $this;
  48. }
  49. public function getQuestion(): ?string
  50. {
  51. return $this->question;
  52. }
  53. public function setQuestion(string $question): self
  54. {
  55. $this->question = $question;
  56. return $this;
  57. }
  58. public function getReponse(): ?string
  59. {
  60. return $this->reponse;
  61. }
  62. public function setReponse(?string $reponse): self
  63. {
  64. $this->reponse = $reponse;
  65. return $this;
  66. }
  67. public function getCreatedAt(): ?\DateTimeImmutable
  68. {
  69. return $this->createdAt;
  70. }
  71. public function setCreatedAt(\DateTimeImmutable $createdAt): self
  72. {
  73. $this->createdAt = $createdAt;
  74. return $this;
  75. }
  76. }