src/Entity/Priorite.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrioriteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=PrioriteRepository::class)
  7. */
  8. class Priorite
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="priorites")
  18. * @ORM\JoinColumn(name="agent")
  19. */
  20. private $agent;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Compagne::class, inversedBy="priorites")
  23. * @ORM\JoinColumn(name="campagne")
  24. */
  25. private $campagne;
  26. /**
  27. * @ORM\Column(type="integer")
  28. */
  29. private $niveau;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. public function getAgent(): ?Utilisateur
  35. {
  36. return $this->agent;
  37. }
  38. public function setAgent(?Utilisateur $agent): self
  39. {
  40. $this->agent = $agent;
  41. return $this;
  42. }
  43. public function getCampagne(): ?Compagne
  44. {
  45. return $this->campagne;
  46. }
  47. public function setCampagne(?Compagne $campagne): self
  48. {
  49. $this->campagne = $campagne;
  50. return $this;
  51. }
  52. public function getNiveau(): ?int
  53. {
  54. return $this->niveau;
  55. }
  56. public function setNiveau(int $niveau): self
  57. {
  58. $this->niveau = $niveau;
  59. return $this;
  60. }
  61. }