src/Entity/Suivi.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SuiviRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=SuiviRepository::class)
  7. */
  8. class Suivi
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Actualite::class, inversedBy="suivis")
  18. * @ORM\JoinColumn(name="actualite")
  19. */
  20. private $actualite;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="suivis")
  23. * @ORM\JoinColumn(name="user")
  24. */
  25. private $user;
  26. /**
  27. * @ORM\Column(type="integer")
  28. */
  29. private $lu;
  30. /**
  31. * @ORM\Column(type="integer")
  32. */
  33. private $archive;
  34. public function getId(): ?int
  35. {
  36. return $this->id;
  37. }
  38. public function getActualite(): ?Actualite
  39. {
  40. return $this->actualite;
  41. }
  42. public function setActualite(?Actualite $actualite): self
  43. {
  44. $this->actualite = $actualite;
  45. return $this;
  46. }
  47. public function getUser(): ?Utilisateur
  48. {
  49. return $this->user;
  50. }
  51. public function setUser(?Utilisateur $user): self
  52. {
  53. $this->user = $user;
  54. return $this;
  55. }
  56. public function getLu(): ?int
  57. {
  58. return $this->lu;
  59. }
  60. public function setLu(int $lu): self
  61. {
  62. $this->lu = $lu;
  63. return $this;
  64. }
  65. public function getArchive(): ?int
  66. {
  67. return $this->archive;
  68. }
  69. public function setArchive(int $archive): self
  70. {
  71. $this->archive = $archive;
  72. return $this;
  73. }
  74. }