src/Entity/Locataires.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\LocatairesRepository;
  5. use Doctrine\Common\Collections\Collection;
  6. #[ORM\Entity(repositoryClassLocatairesRepository::class)]
  7. class Locataires
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $nom null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $prenom null;
  17.     #[ORM\Column]
  18.     private ?int $age null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $metier null;
  21.     #[ORM\Column]
  22.     private ?string $numeroFixe null;
  23.     #[ORM\Column]
  24.     private ?string $numeroMobile null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $email null;
  27.     #[ORM\OneToOne(mappedBy'locataire'cascade: ['persist''remove'])]
  28.     private ?Logements $logements null;
  29.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  30.     private ?LocataireConjoint $locataireConjoint null;
  31.     #[ORM\ManyToMany(targetEntityAutresContacts::class, inversedBy'locataires')]
  32.     private Collection $autresContacts;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $tutelleCuratelle null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?bool $carteInvalidite null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?bool $ayantDroit null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?bool $demandeMutation null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?bool $refusTravaux null;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getNom(): ?string
  48.     {
  49.         return $this->nom;
  50.     }
  51.     public function setNom(string $nom): self
  52.     {
  53.         $this->nom $nom;
  54.         return $this;
  55.     }
  56.     public function getPrenom(): ?string
  57.     {
  58.         return $this->prenom;
  59.     }
  60.     public function setPrenom(string $prenom): self
  61.     {
  62.         $this->prenom $prenom;
  63.         return $this;
  64.     }
  65.     public function getAge(): ?int
  66.     {
  67.         return $this->age;
  68.     }
  69.     public function setAge(int $age): self
  70.     {
  71.         $this->age $age;
  72.         return $this;
  73.     }
  74.     public function getMetier(): ?string
  75.     {
  76.         return $this->metier;
  77.     }
  78.     public function setMetier(string $metier): self
  79.     {
  80.         $this->metier $metier;
  81.         return $this;
  82.     }
  83.     public function getNumeroFixe(): ?string
  84.     {
  85.         return $this->numeroFixe;
  86.     }
  87.     public function setNumeroFixe(string $numeroFixe): self
  88.     {
  89.         $this->numeroFixe $numeroFixe;
  90.         return $this;
  91.     }
  92.     public function getNumeroMobile(): ?string
  93.     {
  94.         return $this->numeroMobile;
  95.     }
  96.     public function setNumeroMobile(string $numeroMobile): self
  97.     {
  98.         $this->numeroMobile $numeroMobile;
  99.         return $this;
  100.     }
  101.     public function getEmail(): ?string
  102.     {
  103.         return $this->email;
  104.     }
  105.     public function setEmail(string $email): self
  106.     {
  107.         $this->email $email;
  108.         return $this;
  109.     }
  110.     public function getLogements(): ?Logements
  111.     {
  112.         return $this->logements;
  113.     }
  114.     public function setLogements(?Logements $logements): self
  115.     {
  116.         // unset the owning side of the relation if necessary
  117.         if ($logements === null && $this->logements !== null) {
  118.             $this->logements->setLocataire(null);
  119.         }
  120.         // set the owning side of the relation if necessary
  121.         if ($logements !== null && $logements->getLocataire() !== $this) {
  122.             $logements->setLocataire($this);
  123.         }
  124.         $this->logements $logements;
  125.         return $this;
  126.     }
  127.     public function getLocataireConjoint(): ?LocataireConjoint
  128.     {
  129.         return $this->locataireConjoint;
  130.     }
  131.     public function setLocataireConjoint(?LocataireConjoint $locataireConjoint): self
  132.     {
  133.         $this->locataireConjoint $locataireConjoint;
  134.         return $this;
  135.     }
  136.     /**
  137.      * @return Collection<int, AutresContacts>
  138.      */
  139.     public function getAutresContacts(): Collection
  140.     {
  141.         return $this->autresContacts;
  142.     }
  143.     public function addAutresContact(AutresContacts $autresContact): self
  144.     {
  145.         if (!$this->autresContacts->contains($autresContact)) {
  146.             $this->autresContacts->add($autresContact);
  147.         }
  148.         return $this;
  149.     }
  150.     public function removeAutresContact(AutresContacts $autresContact): self
  151.     {
  152.         $this->autresContacts->removeElement($autresContact);
  153.         return $this;
  154.     }
  155.     public function isTutelleCuratelle(): ?bool
  156.     {
  157.         return $this->tutelleCuratelle;
  158.     }
  159.     public function setTutelleCuratelle(?bool $tutelleCuratelle): self
  160.     {
  161.         $this->tutelleCuratelle $tutelleCuratelle;
  162.         return $this;
  163.     }
  164.     public function isCarteInvalidite(): ?bool
  165.     {
  166.         return $this->carteInvalidite;
  167.     }
  168.     public function setCarteInvalidite(?bool $carteInvalidite): self
  169.     {
  170.         $this->carteInvalidite $carteInvalidite;
  171.         return $this;
  172.     }
  173.     public function isAyantDroit(): ?bool
  174.     {
  175.         return $this->ayantDroit;
  176.     }
  177.     public function setAyantDroit(?bool $ayantDroit): self
  178.     {
  179.         $this->ayantDroit $ayantDroit;
  180.         return $this;
  181.     }
  182.     public function isDemandeMutation(): ?bool
  183.     {
  184.         return $this->demandeMutation;
  185.     }
  186.     public function setDemandeMutation(?bool $demandeMutation): self
  187.     {
  188.         $this->demandeMutation $demandeMutation;
  189.         return $this;
  190.     }
  191.     public function isRefusTravaux(): ?bool
  192.     {
  193.         return $this->refusTravaux;
  194.     }
  195.     public function setRefusTravaux(?bool $refusTravaux): self
  196.     {
  197.         $this->refusTravaux $refusTravaux;
  198.         return $this;
  199.     }
  200.  
  201. }