src/Entity/Demande.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=DemandeRepository::class)
  7. */
  8. class Demande
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Federation::class, inversedBy="demandes")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $federation;
  21. /**
  22. * @ORM\Column(type="date")
  23. */
  24. private $adhesion;
  25. /**
  26. * @ORM\OneToOne(targetEntity=User::class, inversedBy="demande", cascade={"persist", "remove"})
  27. * @ORM\JoinColumn(nullable=false)
  28. */
  29. private $user;
  30. /**
  31. * @ORM\Column(type="boolean", nullable=true)
  32. */
  33. private $cadre;
  34. /**
  35. * @ORM\Column(type="integer", nullable=true)
  36. */
  37. private $etat;
  38. /**
  39. * @ORM\ManyToOne(targetEntity=Commune::class)
  40. */
  41. private $commune;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getFederation(): ?Federation
  47. {
  48. return $this->federation;
  49. }
  50. public function setFederation(?Federation $federation): self
  51. {
  52. $this->federation = $federation;
  53. return $this;
  54. }
  55. public function getAdhesion(): ?\DateTimeInterface
  56. {
  57. return $this->adhesion;
  58. }
  59. public function setAdhesion(\DateTimeInterface $adhesion): self
  60. {
  61. $this->adhesion = $adhesion;
  62. return $this;
  63. }
  64. public function getUser(): ?User
  65. {
  66. return $this->user;
  67. }
  68. public function setUser(User $user): self
  69. {
  70. $this->user = $user;
  71. return $this;
  72. }
  73. public function getCadre(): ?bool
  74. {
  75. return $this->cadre;
  76. }
  77. public function setCadre(?bool $cadre): self
  78. {
  79. $this->cadre = $cadre;
  80. return $this;
  81. }
  82. public function getEtat(): ?int
  83. {
  84. return $this->etat;
  85. }
  86. public function setEtat(?int $etat): self
  87. {
  88. $this->etat = $etat;
  89. return $this;
  90. }
  91. public function getCommune(): ?Commune
  92. {
  93. return $this->commune;
  94. }
  95. public function setCommune(?Commune $commune): self
  96. {
  97. $this->commune = $commune;
  98. return $this;
  99. }
  100. }