src/Entity/Eleve.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * Eleve
  7. *
  8. * @ORM\Table(name="ELEVE", indexes={@ORM\Index(name="utilisateurmaj_id", columns={"utilisateurmaj_id"}), @ORM\Index(name="utilisateur_id", columns={"utilisateur_id"})})
  9. * @ORM\Entity
  10. */
  11. class Eleve
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="ideleve", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $ideleve;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="nomeleve", type="string", length=255, nullable=false)
  25. */
  26. private $nomeleve;
  27. /**
  28. * @var string
  29. *
  30. * @ORM\Column(name="prenomeleve", type="string", length=255, nullable=false)
  31. */
  32. private $prenomeleve;
  33. /**
  34. * @var string
  35. *
  36. * @ORM\Column(name="emaileleve", type="string", length=255, nullable=false)
  37. */
  38. private $emaileleve;
  39. /**
  40. * @var string
  41. *
  42. * @ORM\Column(name="numeroidentification", type="string", length=20, nullable=false)
  43. */
  44. private $numeroidentification;
  45. /**
  46. * @var \DateTime
  47. *
  48. * @ORM\Column(name="dateentree", type="date", nullable=false)
  49. */
  50. private $dateentree;
  51. /**
  52. * @var \DateTime
  53. *
  54. * @ORM\Column(name="datecrea", type="datetime", nullable=false)
  55. */
  56. private $datecrea;
  57. /**
  58. * @var \DateTime
  59. *
  60. * @ORM\Column(name="datemaj", type="datetime", nullable=false)
  61. */
  62. private $datemaj;
  63. /**
  64. * @var int|null
  65. *
  66. * @ORM\Column(name="fichier_id", type="integer", nullable=true)
  67. */
  68. private $fichierId;
  69. /**
  70. * @var \DateTime|null
  71. *
  72. * @ORM\Column(name="datenaissanceeleve", type="date", nullable=true)
  73. */
  74. private $datenaissanceeleve;
  75. /**
  76. * @var \Utilisateur
  77. *
  78. * @ORM\ManyToOne(targetEntity="Utilisateur")
  79. * @ORM\JoinColumns({
  80. * @ORM\JoinColumn(name="utilisateur_id", referencedColumnName="idutilisateur")
  81. * })
  82. */
  83. private $utilisateur;
  84. /**
  85. * @var \Utilisateur
  86. *
  87. * @ORM\ManyToOne(targetEntity="Utilisateur")
  88. * @ORM\JoinColumns({
  89. * @ORM\JoinColumn(name="utilisateurmaj_id", referencedColumnName="idutilisateur")
  90. * })
  91. */
  92. private $utilisateurmaj;
  93. /**
  94. * ToString
  95. */
  96. public function __ToString()
  97. {
  98. return $this->nomeleve." ".$this->prenomeleve;
  99. }
  100. public function getIdeleve(): ?int
  101. {
  102. return $this->ideleve;
  103. }
  104. public function getNomeleve(): ?string
  105. {
  106. return $this->nomeleve;
  107. }
  108. public function setNomeleve(string $nomeleve): static
  109. {
  110. $this->nomeleve = $nomeleve;
  111. return $this;
  112. }
  113. public function getPrenomeleve(): ?string
  114. {
  115. return $this->prenomeleve;
  116. }
  117. public function setPrenomeleve(string $prenomeleve): static
  118. {
  119. $this->prenomeleve = $prenomeleve;
  120. return $this;
  121. }
  122. public function getEmaileleve(): ?string
  123. {
  124. return $this->emaileleve;
  125. }
  126. public function setEmaileleve(string $emaileleve): static
  127. {
  128. $this->emaileleve = $emaileleve;
  129. return $this;
  130. }
  131. public function getNumeroidentification(): ?string
  132. {
  133. return $this->numeroidentification;
  134. }
  135. public function setNumeroidentification(string $numeroidentification): static
  136. {
  137. $this->numeroidentification = $numeroidentification;
  138. return $this;
  139. }
  140. public function getDateentree(): ?\DateTimeInterface
  141. {
  142. return $this->dateentree;
  143. }
  144. public function setDateentree(\DateTimeInterface $dateentree): static
  145. {
  146. $this->dateentree = $dateentree;
  147. return $this;
  148. }
  149. public function getDatecrea(): ?\DateTimeInterface
  150. {
  151. return $this->datecrea;
  152. }
  153. public function setDatecrea(\DateTimeInterface $datecrea): static
  154. {
  155. $this->datecrea = $datecrea;
  156. return $this;
  157. }
  158. public function getDatemaj(): ?\DateTimeInterface
  159. {
  160. return $this->datemaj;
  161. }
  162. public function setDatemaj(\DateTimeInterface $datemaj): static
  163. {
  164. $this->datemaj = $datemaj;
  165. return $this;
  166. }
  167. public function getFichierId(): ?int
  168. {
  169. return $this->fichierId;
  170. }
  171. public function setFichierId(?int $fichierId): static
  172. {
  173. $this->fichierId = $fichierId;
  174. return $this;
  175. }
  176. public function getDatenaissanceeleve(): ?\DateTimeInterface
  177. {
  178. return $this->datenaissanceeleve;
  179. }
  180. public function setDatenaissanceeleve(?\DateTimeInterface $datenaissanceeleve): static
  181. {
  182. $this->datenaissanceeleve = $datenaissanceeleve;
  183. return $this;
  184. }
  185. public function getUtilisateur(): ?Utilisateur
  186. {
  187. return $this->utilisateur;
  188. }
  189. public function setUtilisateur(?Utilisateur $utilisateur): static
  190. {
  191. $this->utilisateur = $utilisateur;
  192. return $this;
  193. }
  194. public function getUtilisateurmaj(): ?Utilisateur
  195. {
  196. return $this->utilisateurmaj;
  197. }
  198. public function setUtilisateurmaj(?Utilisateur $utilisateurmaj): static
  199. {
  200. $this->utilisateurmaj = $utilisateurmaj;
  201. return $this;
  202. }
  203. }