src/Entity/MessageParent.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MessageParentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MessageParentRepository::class)
  7. */
  8. class MessageParent
  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 $parent;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $enfant;
  24. /**
  25. * @ORM\Column(type="string", length=255)
  26. */
  27. private $email;
  28. /**
  29. * @ORM\Column(type="text")
  30. */
  31. private $message;
  32. /**
  33. * @ORM\Column(type="boolean")
  34. */
  35. private $isValid;
  36. /**
  37. * @ORM\ManyToOne(targetEntity=SejourSession::class, inversedBy="messageParents")
  38. */
  39. private $sejourSession;
  40. /**
  41. * @ORM\Column(type="datetime")
  42. */
  43. private $creationDate;
  44. public function __construct()
  45. {
  46. $this->creationDate = new \DateTime();
  47. }
  48. public function getId(): ?int
  49. {
  50. return $this->id;
  51. }
  52. public function getParent(): ?string
  53. {
  54. return $this->parent;
  55. }
  56. public function setParent(?string $parent): self
  57. {
  58. $this->parent = $parent;
  59. return $this;
  60. }
  61. public function getEnfant(): ?string
  62. {
  63. return $this->enfant;
  64. }
  65. public function setEnfant(string $enfant): self
  66. {
  67. $this->enfant = $enfant;
  68. return $this;
  69. }
  70. public function getEmail(): ?string
  71. {
  72. return $this->email;
  73. }
  74. public function setEmail(string $email): self
  75. {
  76. $this->email = $email;
  77. return $this;
  78. }
  79. public function getMessage(): ?string
  80. {
  81. return $this->message;
  82. }
  83. public function setMessage(string $message): self
  84. {
  85. $this->message = $message;
  86. return $this;
  87. }
  88. public function getIsValid(): ?bool
  89. {
  90. return $this->isValid;
  91. }
  92. public function setIsValid(bool $isValid): self
  93. {
  94. $this->isValid = $isValid;
  95. return $this;
  96. }
  97. public function getSejourSession(): ?SejourSession
  98. {
  99. return $this->sejourSession;
  100. }
  101. public function setSejourSession(?SejourSession $sejourSession): self
  102. {
  103. $this->sejourSession = $sejourSession;
  104. return $this;
  105. }
  106. public function getCreationDate(): ?\DateTimeInterface
  107. {
  108. return $this->creationDate;
  109. }
  110. public function setCreationDate(\DateTimeInterface $creationDate): self
  111. {
  112. $this->creationDate = $creationDate;
  113. return $this;
  114. }
  115. }