src/Entity/DemandeSejourCorse.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeSejourCorseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=DemandeSejourCorseRepository::class)
  7. */
  8. class DemandeSejourCorse
  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 $organisme;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="demandeSejourCorses",cascade={"persist"})
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $contact;
  25. /**
  26. * @ORM\Column(type="datetime", nullable=true)
  27. */
  28. private $sejourStartDate;
  29. /**
  30. * @ORM\Column(type="datetime")
  31. */
  32. private $sejourEndDate;
  33. /**
  34. * @ORM\Column(type="string", length=255)
  35. */
  36. private $type;
  37. /**
  38. * @ORM\Column(type="integer")
  39. */
  40. private $childrenNumber;
  41. /**
  42. * @ORM\Column(type="integer")
  43. */
  44. private $teenagerCount;
  45. /**
  46. * @ORM\Column(type="integer")
  47. */
  48. private $staffCount;
  49. /**
  50. * @ORM\Column(type="json", nullable=true)
  51. */
  52. private $activities = [];
  53. /**
  54. * @ORM\Column(type="text", nullable=true)
  55. */
  56. private $message;
  57. public function getId(): ?int
  58. {
  59. return $this->id;
  60. }
  61. public function getOrganisme(): ?string
  62. {
  63. return $this->organisme;
  64. }
  65. public function setOrganisme(?string $organisme): self
  66. {
  67. $this->organisme = $organisme;
  68. return $this;
  69. }
  70. public function getContact(): ?Contact
  71. {
  72. return $this->contact;
  73. }
  74. public function setContact(?Contact $contact): self
  75. {
  76. $this->contact = $contact;
  77. return $this;
  78. }
  79. public function getSejourStartDate(): ?\DateTimeInterface
  80. {
  81. return $this->sejourStartDate;
  82. }
  83. public function setSejourStartDate(?\DateTimeInterface $sejourStartDate): self
  84. {
  85. $this->sejourStartDate = $sejourStartDate;
  86. return $this;
  87. }
  88. public function getSejourEndDate(): ?\DateTimeInterface
  89. {
  90. return $this->sejourEndDate;
  91. }
  92. public function setSejourEndDate(\DateTimeInterface $sejourEndDate): self
  93. {
  94. $this->sejourEndDate = $sejourEndDate;
  95. return $this;
  96. }
  97. public function getType(): ?string
  98. {
  99. return $this->type;
  100. }
  101. public function setType(string $type): self
  102. {
  103. $this->type = $type;
  104. return $this;
  105. }
  106. public function getChildrenNumber(): ?int
  107. {
  108. return $this->childrenNumber;
  109. }
  110. public function setChildrenNumber(int $childrenNumber): self
  111. {
  112. $this->childrenNumber = $childrenNumber;
  113. return $this;
  114. }
  115. public function getTeenagerCount(): ?int
  116. {
  117. return $this->teenagerCount;
  118. }
  119. public function setTeenagerCount(int $teenagerCount): self
  120. {
  121. $this->teenagerCount = $teenagerCount;
  122. return $this;
  123. }
  124. public function getStaffCount(): ?int
  125. {
  126. return $this->staffCount;
  127. }
  128. public function setStaffCount(int $staffCount): self
  129. {
  130. $this->staffCount = $staffCount;
  131. return $this;
  132. }
  133. public function getActivities(): ?array
  134. {
  135. return $this->activities;
  136. }
  137. public function setActivities(?array $activities): self
  138. {
  139. $this->activities = $activities;
  140. return $this;
  141. }
  142. public function getMessage(): ?string
  143. {
  144. return $this->message;
  145. }
  146. public function setMessage(?string $message): self
  147. {
  148. $this->message = $message;
  149. return $this;
  150. }
  151. }