src/Entity/MessageDirecteurAuxParents.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MessageDirecteurAuxParentsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MessageDirecteurAuxParentsRepository::class)
  7. */
  8. class MessageDirecteurAuxParents
  9. {
  10. const STATE_OPEN = "open";
  11. const STATE_REJECTED = "rejected";
  12. const STATE_VALIDATED = "validated";
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\ManyToOne(targetEntity=Contact::class)
  21. * @ORM\JoinColumn(nullable=false)
  22. */
  23. private $directeur;
  24. /**
  25. * @ORM\Column(type="boolean", nullable=true)
  26. */
  27. private $isValidated;
  28. /**
  29. * @ORM\Column(type="text", nullable=true)
  30. */
  31. private $text;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private $meteo;
  36. /**
  37. * @ORM\ManyToOne(targetEntity=SejourSession::class, inversedBy="messageDirecteurAuxParents")
  38. * @ORM\JoinColumn(nullable=false)
  39. */
  40. private $sejourSession;
  41. /**
  42. * @ORM\Column(type="datetime")
  43. */
  44. private $createdDate;
  45. /**
  46. * @ORM\Column(type="string", length=255)
  47. */
  48. private $status;
  49. public function getId(): ?int
  50. {
  51. return $this->id;
  52. }
  53. public function getDirecteur(): ?Contact
  54. {
  55. return $this->directeur;
  56. }
  57. public function setDirecteur(?Contact $directeur): self
  58. {
  59. $this->directeur = $directeur;
  60. return $this;
  61. }
  62. public function getIsValidated(): ?bool
  63. {
  64. return $this->isValidated;
  65. }
  66. public function setIsValidated(?bool $isValidated): self
  67. {
  68. $this->isValidated = $isValidated;
  69. return $this;
  70. }
  71. public function getText(): ?string
  72. {
  73. return $this->text;
  74. }
  75. public function setText(?string $text): self
  76. {
  77. $this->text = $text;
  78. return $this;
  79. }
  80. public function getMeteo(): ?string
  81. {
  82. return $this->meteo;
  83. }
  84. public function setMeteo(?string $meteo): self
  85. {
  86. $this->meteo = $meteo;
  87. return $this;
  88. }
  89. public function getSejourSession(): ?SejourSession
  90. {
  91. return $this->sejourSession;
  92. }
  93. public function setSejourSession(?SejourSession $sejourSession): self
  94. {
  95. $this->sejourSession = $sejourSession;
  96. return $this;
  97. }
  98. public function getCreatedDate(): ?\DateTimeInterface
  99. {
  100. return $this->createdDate;
  101. }
  102. public function setCreatedDate(\DateTimeInterface $createdDate): self
  103. {
  104. $this->createdDate = $createdDate;
  105. return $this;
  106. }
  107. public function getStatus(): ?string
  108. {
  109. return $this->status;
  110. }
  111. public function setStatus(string $status): self
  112. {
  113. $this->status = $status;
  114. return $this;
  115. }
  116. public function __construct()
  117. {
  118. $this->createdDate = new \DateTime();
  119. $this->text = "Chers Parents, bonsoir, <br/><br/>";
  120. }
  121. }