src/Entity/Communication.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommunicationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=CommunicationRepository::class)
  7. */
  8. class Communication
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="integer")
  18. */
  19. private $Type;
  20. /**
  21. * @ORM\Column(type="integer")
  22. */
  23. private $Etape;
  24. /**
  25. * @ORM\Column(type="string", length=255, nullable=true)
  26. */
  27. private $Lien;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=Projet::class, inversedBy="communications")
  30. * @ORM\JoinColumn(name="id_projet", referencedColumnName="id")
  31. */
  32. private $projet;
  33. /**
  34. * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="communications")
  35. * @ORM\JoinColumn(name="id_sup", referencedColumnName="id")
  36. */
  37. private $sup;
  38. /**
  39. * @ORM\Column(type="string", length=255, nullable=true)
  40. */
  41. private $date_lancement;
  42. /**
  43. * @ORM\Column(type="integer")
  44. */
  45. private $etat;
  46. /**
  47. * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="communications")
  48. * @ORM\JoinColumn(name="id_ch", referencedColumnName="id")
  49. */
  50. private $chargeProjet;
  51. /**
  52. * @ORM\Column(type="string", length=255, nullable=true)
  53. */
  54. private $date_creation;
  55. /**
  56. * @ORM\Column(type="integer")
  57. */
  58. private $categorie;
  59. public function getId(): ?int
  60. {
  61. return $this->id;
  62. }
  63. public function getType(): ?int
  64. {
  65. return $this->Type;
  66. }
  67. public function setType(int $Type): self
  68. {
  69. $this->Type = $Type;
  70. return $this;
  71. }
  72. public function getEtape(): ?int
  73. {
  74. return $this->Etape;
  75. }
  76. public function setEtape(int $Etape): self
  77. {
  78. $this->Etape = $Etape;
  79. return $this;
  80. }
  81. public function getLien(): ?string
  82. {
  83. return $this->Lien;
  84. }
  85. public function setLien(?string $Lien): self
  86. {
  87. $this->Lien = $Lien;
  88. return $this;
  89. }
  90. public function getProjet(): ?Projet
  91. {
  92. return $this->projet;
  93. }
  94. public function setProjet(?Projet $projet): self
  95. {
  96. $this->projet = $projet;
  97. return $this;
  98. }
  99. public function getSup(): ?Utilisateur
  100. {
  101. return $this->sup;
  102. }
  103. public function setSup(?Utilisateur $sup): self
  104. {
  105. $this->sup = $sup;
  106. return $this;
  107. }
  108. public function getDateLancement(): ?string
  109. {
  110. return $this->date_lancement;
  111. }
  112. public function setDateLancement(?string $date_lancement): self
  113. {
  114. $this->date_lancement = $date_lancement;
  115. return $this;
  116. }
  117. public function getEtat(): ?int
  118. {
  119. return $this->etat;
  120. }
  121. public function setEtat(int $etat): self
  122. {
  123. $this->etat = $etat;
  124. return $this;
  125. }
  126. public function getChargeProjet(): ?Utilisateur
  127. {
  128. return $this->chargeProjet;
  129. }
  130. public function setChargeProjet(?Utilisateur $chargeProjet): self
  131. {
  132. $this->chargeProjet = $chargeProjet;
  133. return $this;
  134. }
  135. public function getDateCreation(): ?string
  136. {
  137. return $this->date_creation;
  138. }
  139. public function setDateCreation(?string $date_creation): self
  140. {
  141. $this->date_creation = $date_creation;
  142. return $this;
  143. }
  144. public function getCategorie(): ?int
  145. {
  146. return $this->categorie;
  147. }
  148. public function setCategorie(int $categorie): self
  149. {
  150. $this->categorie = $categorie;
  151. return $this;
  152. }
  153. }