src/Entity/ContactForFamilleAccueil.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactForFamilleAccueilRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use App\Entity\Inscription;
  8. use Symfony\Component\HttpFoundation\File\File;
  9. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  10. use Symfony\Component\Validator\Constraints as Assert;
  11. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  12. use Symfony\Component\Serializer\Annotation\Ignore;
  13. /**
  14. * @ORM\Entity(repositoryClass=ContactForFamilleAccueilRepository::class)
  15. */
  16. class ContactForFamilleAccueil
  17. {
  18. /**
  19. * @ORM\Id
  20. * @ORM\GeneratedValue
  21. * @ORM\Column(type="integer")
  22. */
  23. private ?int $id = null;
  24. /**
  25. * @ORM\Column(type="string", length=50, nullable=true)
  26. */
  27. private $type;
  28. /**
  29. * @ORM\Column(type="string", length=50, nullable=true)
  30. */
  31. private $firstName;
  32. /**
  33. * @ORM\Column(type="string", length=50, nullable=true)
  34. */
  35. private $lastName;
  36. /**
  37. * @ORM\Column(type="string", length=1, nullable=true)
  38. */
  39. private $sexe;
  40. /**
  41. * @ORM\ManyToOne(targetEntity=Location::class, inversedBy="contactForFamilleAccueils",cascade={"persist"})
  42. */
  43. private $location;
  44. /**
  45. * @ORM\ManyToOne(targetEntity=Inscription::class, inversedBy="contactForFamilleAccueils",cascade={"persist"})
  46. */
  47. private $inscription;
  48. /**
  49. * @ORM\Column(type="string", length=255, nullable=true)
  50. * @Assert\Email
  51. */
  52. private $email;
  53. /**
  54. * @ORM\Column(type="string", length=255, nullable=true)
  55. */
  56. private $phone;
  57. public function getId(): ?int
  58. {
  59. return $this->id;
  60. }
  61. public function getFirstName(): ?string
  62. {
  63. return $this->firstName;
  64. }
  65. public function setFirstName(string $firstName): self
  66. {
  67. $this->firstName = $firstName;
  68. return $this;
  69. }
  70. public function getType(): ?string
  71. {
  72. return $this->type;
  73. }
  74. public function setType(string $firstName): self
  75. {
  76. $this->type = $firstName;
  77. return $this;
  78. }
  79. public function getLastName(): ?string
  80. {
  81. return $this->lastName;
  82. }
  83. public function setLastName(?string $lastName): self
  84. {
  85. $this->lastName = strtoupper($lastName);
  86. return $this;
  87. }
  88. public function getSexe(): ?string
  89. {
  90. return $this->sexe;
  91. }
  92. public function setSexe(?string $Sexe): self
  93. {
  94. $this->sexe = $Sexe;
  95. return $this;
  96. }
  97. public function getLocation(): ?Location
  98. {
  99. return $this->location;
  100. }
  101. public function setLocation(?Location $location): self
  102. {
  103. $this->location = $location;
  104. return $this;
  105. }
  106. public function getInscription(): ?Inscription
  107. {
  108. return $this->inscription;
  109. }
  110. public function setInscription(?Inscription $inscription): self
  111. {
  112. $this->inscription = $inscription;
  113. return $this;
  114. }
  115. public function getEmail(): ?string
  116. {
  117. return $this->email;
  118. }
  119. public function setEmail(?string $email): self
  120. {
  121. $this->email = $email;
  122. return $this;
  123. }
  124. public function getPhone(): ?string
  125. {
  126. return $this->phone;
  127. }
  128. public function setPhone(?string $phone): self
  129. {
  130. $this->phone = $phone;
  131. return $this;
  132. }
  133. }