<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use App\Repository\LocatairesRepository;use Doctrine\Common\Collections\Collection;#[ORM\Entity(repositoryClass: LocatairesRepository::class)]class Locataires{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $nom = null; #[ORM\Column(length: 255)] private ?string $prenom = null; #[ORM\Column] private ?int $age = null; #[ORM\Column(length: 255)] private ?string $metier = null; #[ORM\Column] private ?string $numeroFixe = null; #[ORM\Column] private ?string $numeroMobile = null; #[ORM\Column(length: 255)] private ?string $email = null; #[ORM\OneToOne(mappedBy: 'locataire', cascade: ['persist', 'remove'])] private ?Logements $logements = null; #[ORM\OneToOne(cascade: ['persist', 'remove'])] private ?LocataireConjoint $locataireConjoint = null; #[ORM\ManyToMany(targetEntity: AutresContacts::class, inversedBy: 'locataires')] private Collection $autresContacts; #[ORM\Column(nullable: true)] private ?bool $tutelleCuratelle = null; #[ORM\Column(nullable: true)] private ?bool $carteInvalidite = null; #[ORM\Column(nullable: true)] private ?bool $ayantDroit = null; #[ORM\Column(nullable: true)] private ?bool $demandeMutation = null; #[ORM\Column(nullable: true)] private ?bool $refusTravaux = null; public function getId(): ?int { return $this->id; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): self { $this->nom = $nom; return $this; } public function getPrenom(): ?string { return $this->prenom; } public function setPrenom(string $prenom): self { $this->prenom = $prenom; return $this; } public function getAge(): ?int { return $this->age; } public function setAge(int $age): self { $this->age = $age; return $this; } public function getMetier(): ?string { return $this->metier; } public function setMetier(string $metier): self { $this->metier = $metier; return $this; } public function getNumeroFixe(): ?string { return $this->numeroFixe; } public function setNumeroFixe(string $numeroFixe): self { $this->numeroFixe = $numeroFixe; return $this; } public function getNumeroMobile(): ?string { return $this->numeroMobile; } public function setNumeroMobile(string $numeroMobile): self { $this->numeroMobile = $numeroMobile; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getLogements(): ?Logements { return $this->logements; } public function setLogements(?Logements $logements): self { // unset the owning side of the relation if necessary if ($logements === null && $this->logements !== null) { $this->logements->setLocataire(null); } // set the owning side of the relation if necessary if ($logements !== null && $logements->getLocataire() !== $this) { $logements->setLocataire($this); } $this->logements = $logements; return $this; } public function getLocataireConjoint(): ?LocataireConjoint { return $this->locataireConjoint; } public function setLocataireConjoint(?LocataireConjoint $locataireConjoint): self { $this->locataireConjoint = $locataireConjoint; return $this; } /** * @return Collection<int, AutresContacts> */ public function getAutresContacts(): Collection { return $this->autresContacts; } public function addAutresContact(AutresContacts $autresContact): self { if (!$this->autresContacts->contains($autresContact)) { $this->autresContacts->add($autresContact); } return $this; } public function removeAutresContact(AutresContacts $autresContact): self { $this->autresContacts->removeElement($autresContact); return $this; } public function isTutelleCuratelle(): ?bool { return $this->tutelleCuratelle; } public function setTutelleCuratelle(?bool $tutelleCuratelle): self { $this->tutelleCuratelle = $tutelleCuratelle; return $this; } public function isCarteInvalidite(): ?bool { return $this->carteInvalidite; } public function setCarteInvalidite(?bool $carteInvalidite): self { $this->carteInvalidite = $carteInvalidite; return $this; } public function isAyantDroit(): ?bool { return $this->ayantDroit; } public function setAyantDroit(?bool $ayantDroit): self { $this->ayantDroit = $ayantDroit; return $this; } public function isDemandeMutation(): ?bool { return $this->demandeMutation; } public function setDemandeMutation(?bool $demandeMutation): self { $this->demandeMutation = $demandeMutation; return $this; } public function isRefusTravaux(): ?bool { return $this->refusTravaux; } public function setRefusTravaux(?bool $refusTravaux): self { $this->refusTravaux = $refusTravaux; return $this; } }