src/Entity/Logements.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\LogementsRepository;
  5. #[ORM\Entity(repositoryClassLogementsRepository::class)]
  6. class Logements
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $adresse null;
  14.     #[ORM\Column]
  15.     private ?int $cp null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $ville null;
  18.     #[ORM\ManyToOne(inversedBy'logements')]
  19.     private ?Projets $projets null;
  20.     #[ORM\OneToOne(inversedBy'logements'cascade: ['persist''remove'])]
  21.     private ?Locataires $locataire null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?bool $logementVide null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?bool $logementTempo null;
  26.   
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getAdresse(): ?string
  32.     {
  33.         return $this->adresse;
  34.     }
  35.     public function setAdresse(string $adresse): self
  36.     {
  37.         $this->adresse $adresse;
  38.         return $this;
  39.     }
  40.     public function getCp(): ?int
  41.     {
  42.         return $this->cp;
  43.     }
  44.     public function setCp(int $cp): self
  45.     {
  46.         $this->cp $cp;
  47.         return $this;
  48.     }
  49.     public function getVille(): ?string
  50.     {
  51.         return $this->ville;
  52.     }
  53.     public function setVille(string $ville): self
  54.     {
  55.         $this->ville $ville;
  56.         return $this;
  57.     }
  58.     public function getProjets(): ?Projets
  59.     {
  60.         return $this->projets;
  61.     }
  62.     public function setProjets(?Projets $projets): self
  63.     {
  64.         $this->projets $projets;
  65.         return $this;
  66.     }
  67.     public function getLocataire(): ?Locataires
  68.     {
  69.         return $this->locataire;
  70.     }
  71.     public function setLocataire(?Locataires $locataire): self
  72.     {
  73.         $this->locataire $locataire;
  74.         return $this;
  75.     }
  76.     public function isLogementVide(): ?bool
  77.     {
  78.         return $this->logementVide;
  79.     }
  80.     public function setLogementVide(?bool $logementVide): self
  81.     {
  82.         $this->logementVide $logementVide;
  83.         return $this;
  84.     }
  85.     public function isLogementTempo(): ?bool
  86.     {
  87.         return $this->logementTempo;
  88.     }
  89.     public function setLogementTempo(?bool $logementTempo): self
  90.     {
  91.         $this->logementTempo $logementTempo;
  92.         return $this;
  93.     }
  94. }