src/Entity/Anneeuniversitaire.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. * Anneeuniversitaire
  7. *
  8. * @ORM\Table(name="ANNEEUNIVERSITAIRE", indexes={@ORM\Index(name="utilisateurmaj_id", columns={"utilisateurmaj_id"})})
  9. * @ORM\Entity
  10. */
  11. class Anneeuniversitaire
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="idanneeuniversitaire", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $idanneeuniversitaire;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="libelleanneeuniversitaire", type="string", length=255, nullable=false)
  25. */
  26. private $libelleanneeuniversitaire;
  27. /**
  28. * @var \DateTime
  29. *
  30. * @ORM\Column(name="datedebut", type="date", nullable=false)
  31. */
  32. private $datedebut;
  33. /**
  34. * @var \DateTime
  35. *
  36. * @ORM\Column(name="datefin", type="date", nullable=false)
  37. */
  38. private $datefin;
  39. /**
  40. * @var \DateTime
  41. *
  42. * @ORM\Column(name="datecrea", type="datetime", nullable=false)
  43. */
  44. private $datecrea;
  45. /**
  46. * @var \DateTime
  47. *
  48. * @ORM\Column(name="datemaj", type="datetime", nullable=false)
  49. */
  50. private $datemaj;
  51. /**
  52. * @var string
  53. *
  54. * @ORM\Column(name="codeanneeuniversitaire", type="string", length=2, nullable=false)
  55. */
  56. private $codeanneeuniversitaire;
  57. /**
  58. * @var \Utilisateur
  59. *
  60. * @ORM\ManyToOne(targetEntity="Utilisateur")
  61. * @ORM\JoinColumns({
  62. * @ORM\JoinColumn(name="utilisateurmaj_id", referencedColumnName="idutilisateur")
  63. * })
  64. */
  65. private $utilisateurmaj;
  66. /**
  67. * ToString
  68. */
  69. public function __ToString()
  70. {
  71. return $this->libelleanneeuniversitaire;
  72. }
  73. public function getIdanneeuniversitaire(): ?int
  74. {
  75. return $this->idanneeuniversitaire;
  76. }
  77. public function getLibelleanneeuniversitaire(): ?string
  78. {
  79. return $this->libelleanneeuniversitaire;
  80. }
  81. public function setLibelleanneeuniversitaire(string $libelleanneeuniversitaire): static
  82. {
  83. $this->libelleanneeuniversitaire = $libelleanneeuniversitaire;
  84. return $this;
  85. }
  86. public function getDatedebut(): ?\DateTimeInterface
  87. {
  88. return $this->datedebut;
  89. }
  90. public function setDatedebut(\DateTimeInterface $datedebut): static
  91. {
  92. $this->datedebut = $datedebut;
  93. return $this;
  94. }
  95. public function getDatefin(): ?\DateTimeInterface
  96. {
  97. return $this->datefin;
  98. }
  99. public function setDatefin(\DateTimeInterface $datefin): static
  100. {
  101. $this->datefin = $datefin;
  102. return $this;
  103. }
  104. public function getDatecrea(): ?\DateTimeInterface
  105. {
  106. return $this->datecrea;
  107. }
  108. public function setDatecrea(\DateTimeInterface $datecrea): static
  109. {
  110. $this->datecrea = $datecrea;
  111. return $this;
  112. }
  113. public function getDatemaj(): ?\DateTimeInterface
  114. {
  115. return $this->datemaj;
  116. }
  117. public function setDatemaj(\DateTimeInterface $datemaj): static
  118. {
  119. $this->datemaj = $datemaj;
  120. return $this;
  121. }
  122. public function getCodeanneeuniversitaire(): ?string
  123. {
  124. return $this->codeanneeuniversitaire;
  125. }
  126. public function setCodeanneeuniversitaire(string $codeanneeuniversitaire): static
  127. {
  128. $this->codeanneeuniversitaire = $codeanneeuniversitaire;
  129. return $this;
  130. }
  131. public function getUtilisateurmaj(): ?Utilisateur
  132. {
  133. return $this->utilisateurmaj;
  134. }
  135. public function setUtilisateurmaj(?Utilisateur $utilisateurmaj): static
  136. {
  137. $this->utilisateurmaj = $utilisateurmaj;
  138. return $this;
  139. }
  140. }