src/Entity/Building.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BuildingRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassBuildingRepository::class)]
  10. class Building
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $type null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $borough null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $street null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $streetNumber null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $country null;
  26.     #[ORM\Column]
  27.     private ?\DateTimeImmutable $createdAt null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  29.     private ?\DateTimeInterface $dateStartAt null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $status null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $state null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $guaranteeType null;
  36.     #[ORM\Column]
  37.     private ?bool $isActive null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $numberId null;
  40.     #[ORM\Column]
  41.     private ?int $rent null;
  42.     #[ORM\ManyToOne(inversedBy'buildings')]
  43.     #[ORM\JoinColumn(nullablefalse)]
  44.     private ?User $propertyManager null;
  45.     #[ORM\Column(typeTypes::TEXT,nullabletrue)]
  46.     private ?string $description null;
  47.     #[ORM\Column(nullabletrue)]
  48.     private ?int $leaseTerm null;
  49.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  50.     private ?\DateTimeInterface $editedAt null;
  51.     #[ORM\ManyToOne(inversedBy'tenantBuildings')]
  52.     private ?User $tenant null;
  53.     #[ORM\OneToMany(mappedBy'building'targetEntityRentalHistory::class, cascade: ['persist''remove'])]
  54.     private Collection $rentalHistories;
  55.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  56.     private ?string $houseRules null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $contactName null;
  59.     #[ORM\Column(length255nullabletrue)]
  60.     private ?string $mailContact null;
  61.     #[ORM\Column(length255nullabletrue)]
  62.     private ?string $phoneContact null;
  63.     #[ORM\Column(nullabletrue)]
  64.     private ?int $securityDeposit null;
  65.     #[ORM\Column(nullabletrue)]
  66.     private ?int $expenses null;
  67.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  68.     private ?string $expensesDescription null;
  69.     #[ORM\Column(nullabletrue)]
  70.     private ?int $surface null;
  71.     #[ORM\Column(nullabletrue)]
  72.     private ?bool $isFurniture null;
  73.     #[ORM\Column(nullabletrue)]
  74.     private ?bool $isAidEligible null;
  75.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingEquipment::class, cascade: ['persist''remove'])]
  76.     private Collection $buildingEquipment;
  77.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingDocument::class, cascade: ['persist''remove'])]
  78.     private Collection $buildingDocuments;
  79.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingEditHistory::class, cascade: ['persist''remove'])]
  80.     private Collection $buildingEditHistories;
  81.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingReportingHistory::class, cascade: ['persist''remove'])]
  82.     private Collection $buildingReportingHistories;
  83.     #[ORM\Column(length255nullabletrue)]
  84.     private ?string $format null;
  85.     #[ORM\ManyToOne(inversedBy'buildings')]
  86.     private ?City $cityEntity null;
  87.     #[ORM\Column(length255nullabletrue)]
  88.     private ?string $postalCode null;
  89.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingFolder::class, cascade: ['persist''remove'])]
  90.     private Collection $buildingFolders;
  91.     #[ORM\ManyToOne(inversedBy'buildings')]
  92.     private ?Residence $residence null;
  93.     #[ORM\Column(nullabletrue)]
  94.     private ?bool $isBlocked null;
  95.     #[ORM\Column]
  96.     private ?bool $isFloor false;
  97.     #[ORM\Column(nullabletrue)]
  98.     private ?int $floor null;
  99.     #[ORM\ManyToMany(targetEntityHousingCertificate::class, mappedBy'building'cascade: ['persist''remove'])]
  100.     private Collection $housingCertificates;
  101.     #[ORM\Column(length255nullabletrue)]
  102.     private ?string $PDL null;
  103.     #[ORM\Column(length255nullabletrue)]
  104.     private ?string $wifi null;
  105.     #[ORM\Column(length255nullabletrue)]
  106.     private ?string $DEP null;
  107.     #[ORM\Column(length255nullabletrue)]
  108.     private ?string $GES null;
  109.     #[ORM\Column(nullabletrue)]
  110.     private ?int $maxFolders null;
  111.     #[ORM\Column(length255nullabletrue)]
  112.     private ?string $uniqueId null;
  113.     #[ORM\OneToMany(mappedBy'building'targetEntityWantedVisio::class, cascade: ['persist''remove'])]
  114.     private Collection $wantedVisios;
  115.     #[ORM\Column(length255nullabletrue)]
  116.     private ?int $minIncome null;
  117.     #[ORM\Column(nullabletrue)]
  118.     private ?bool $isEnd null;
  119.     #[ORM\Column(nullabletrue)]
  120.     private ?float $lat null;
  121.     #[ORM\Column(nullabletrue)]
  122.     private ?float $lng null;
  123.     #[ORM\Column(nullabletrue)]
  124.     private ?bool $isAuthorizeAtestation null;
  125.     #[ORM\Column(type'datetime'nullabletrue)]
  126.     private ?\DateTimeInterface $lastAtestation null;
  127.     #[ORM\Column(nullabletrue)]
  128.     private ?string $hasGuarantor null;
  129.     #[ORM\Column(nullablefalse)]
  130.     private ?int $timeBail null;
  131.     public function __construct()
  132.     {
  133.         $this->createdAt = new \DateTimeImmutable('now', new \DateTimeZone('Europe/Paris'));
  134.         $this->editedAt = new \DateTime('now', new \DateTimeZone('Europe/Paris'));
  135.         $this->rentalHistories = new ArrayCollection();
  136.         $this->buildingEquipment = new ArrayCollection();
  137.         $this->buildingDocuments = new ArrayCollection();
  138.         $this->buildingEditHistories = new ArrayCollection();
  139.         $this->buildingReportingHistories = new ArrayCollection();
  140.         $this->buildingFolders = new ArrayCollection();
  141.         $this->housingCertificates = new ArrayCollection();
  142.         $this->wantedVisios = new ArrayCollection();
  143.         $this->setTimeBail(12);
  144.     }
  145.     public function getTimeBail(): ?int
  146.     {
  147.         return $this->timeBail;
  148.     }
  149.     public function setTimeBail(?int $timeBail): self
  150.     {
  151.         $this->timeBail $timeBail;
  152.         return $this;
  153.     }
  154.     public function getRefBuilding(): string
  155.     {
  156.         return "R".$this->getCreatedAt()->format('dmY').$this->getId();
  157.     }
  158.     public function getLastAtestationt(): ?\DateTimeInterface
  159.     {
  160.         return $this->lastAtestation;
  161.     }
  162.     public function setLastAtestation(?\DateTimeInterface $lastAtestation): self
  163.     {
  164.         $this->lastAtestation $lastAtestation;
  165.         return $this;
  166.     }
  167.     public function __toString(): string
  168.     {
  169.         return $this->numberId ?? $this->id;
  170.     }
  171.     public function isAuthorizeAtestation(): ?bool{
  172.         return $this->isAuthorizeAtestation;
  173.     }
  174.     public function setIsAuthorizeAtestation(?bool $authorizeAtestation): self{
  175.         $this->isAuthorizeAtestation =$authorizeAtestation;
  176.         return $this;
  177.     }
  178.     public function getId(): ?int
  179.     {
  180.         return $this->id;
  181.     }
  182.     public function getType(): ?string
  183.     {
  184.         return $this->type;
  185.     }
  186.     public function setType(?string $type): self
  187.     {
  188.         $this->type $type;
  189.         return $this;
  190.     }
  191.     public function getBorough(): ?string
  192.     {
  193.         return $this->borough;
  194.     }
  195.     public function setBorough(?string $borough): self
  196.     {
  197.         $this->borough $borough;
  198.         return $this;
  199.     }
  200.     public function getStreet(): ?string
  201.     {
  202.         return $this->street;
  203.     }
  204.     public function setStreet(?string $street): self
  205.     {
  206.         $this->street $street;
  207.         return $this;
  208.     }
  209.     public function getStreetNumber(): ?string
  210.     {
  211.         return $this->streetNumber;
  212.     }
  213.     public function setStreetNumber(?string $streetNumber): self
  214.     {
  215.         $this->streetNumber $streetNumber;
  216.         return $this;
  217.     }
  218.     public function getCountry(): ?string
  219.     {
  220.         return $this->country;
  221.     }
  222.     public function setCountry(?string $country): self
  223.     {
  224.         $this->country $country;
  225.         return $this;
  226.     }
  227.     public function getCreatedAt(): ?\DateTimeImmutable
  228.     {
  229.         return $this->createdAt;
  230.     }
  231.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  232.     {
  233.         $this->createdAt $createdAt;
  234.         return $this;
  235.     }
  236.     public function getDateStartAt(): ?\DateTimeInterface
  237.     {
  238.         return $this->dateStartAt;
  239.     }
  240.     public function setDateStartAt(?\DateTimeInterface $dateStartAt): self
  241.     {
  242.         $this->dateStartAt $dateStartAt;
  243.         return $this;
  244.     }
  245.     public function getStatus(): ?string
  246.     {
  247.         return $this->status;
  248.     }
  249.     public function setStatus(?string $status): self
  250.     {
  251.         $this->status $status;
  252.         return $this;
  253.     }
  254.     public function getState(): ?string
  255.     {
  256.         return $this->state;
  257.     }
  258.     public function setState(?string $state): self
  259.     {
  260.         $this->state $state;
  261.         return $this;
  262.     }
  263.     public function getGuaranteeType(): ?string
  264.     {
  265.         return $this->guaranteeType;
  266.     }
  267.     public function setGuaranteeType(?string $guaranteeType): self
  268.     {
  269.         $this->guaranteeType $guaranteeType;
  270.         return $this;
  271.     }
  272.     public function isIsActive(): ?bool
  273.     {
  274.         return $this->isActive;
  275.     }
  276.     public function setIsActive(bool $isActive): self
  277.     {
  278.         $this->isActive $isActive;
  279.         return $this;
  280.     }
  281.     public function getNumberId(): ?string
  282.     {
  283.         return $this->numberId;
  284.     }
  285.     public function setNumberId(string $numberId): self
  286.     {
  287.         $this->numberId $numberId;
  288.         return $this;
  289.     }
  290.     public function getRent(): ?int
  291.     {
  292.         return $this->rent;
  293.     }
  294.     public function setRent(int $rent): self
  295.     {
  296.         $this->rent $rent;
  297.         return $this;
  298.     }
  299.     public function getPropertyManager(): ?User
  300.     {
  301.         return $this->propertyManager;
  302.     }
  303.     public function setPropertyManager(?User $propertyManager): self
  304.     {
  305.         $this->propertyManager $propertyManager;
  306.         return $this;
  307.     }
  308.     public function getDescription(): ?string
  309.     {
  310.         return $this->description;
  311.     }
  312.     public function setDescription(?string $description): self
  313.     {
  314.         $this->description $description;
  315.         return $this;
  316.     }
  317.     public function getLeaseTerm(): ?int
  318.     {
  319.         return $this->leaseTerm;
  320.     }
  321.     public function setLeaseTerm(?int $leaseTerm): self
  322.     {
  323.         $this->leaseTerm $leaseTerm;
  324.         return $this;
  325.     }
  326.     public function getEditedAt(): ?\DateTimeInterface
  327.     {
  328.         return $this->editedAt;
  329.     }
  330.     public function setEditedAt(\DateTimeInterface $editedAt): self
  331.     {
  332.         $this->editedAt $editedAt;
  333.         return $this;
  334.     }
  335.     public function getTenant(): ?User
  336.     {
  337.         return $this->tenant;
  338.     }
  339.     public function setTenant(?User $tenant): self
  340.     {
  341.         $this->tenant $tenant;
  342.         return $this;
  343.     }
  344.     /**
  345.      * @return Collection<int, RentalHistory>
  346.      */
  347.     public function getRentalHistories(): Collection
  348.     {
  349.         return $this->rentalHistories;
  350.     }
  351.     public function addRentalHistory(RentalHistory $rentalHistory): self
  352.     {
  353.         if (!$this->rentalHistories->contains($rentalHistory)) {
  354.             $this->rentalHistories->add($rentalHistory);
  355.             $rentalHistory->setBuilding($this);
  356.         }
  357.         return $this;
  358.     }
  359.     public function removeRentalHistory(RentalHistory $rentalHistory): self
  360.     {
  361.         if ($this->rentalHistories->removeElement($rentalHistory)) {
  362.             // set the owning side to null (unless already changed)
  363.             if ($rentalHistory->getBuilding() === $this) {
  364.                 $rentalHistory->setBuilding(null);
  365.             }
  366.         }
  367.         return $this;
  368.     }
  369.     public function getHouseRules(): ?string
  370.     {
  371.         return $this->houseRules;
  372.     }
  373.     public function setHouseRules(?string $houseRules): self
  374.     {
  375.         $this->houseRules $houseRules;
  376.         return $this;
  377.     }
  378.     public function getContactName(): ?string
  379.     {
  380.         return $this->contactName;
  381.     }
  382.     public function setContactName(?string $contactName): self
  383.     {
  384.         $this->contactName $contactName;
  385.         return $this;
  386.     }
  387.     public function getMailContact(): ?string
  388.     {
  389.         return $this->mailContact;
  390.     }
  391.     public function setMailContact(?string $mailContact): self
  392.     {
  393.         $this->mailContact $mailContact;
  394.         return $this;
  395.     }
  396.     public function getPhoneContact(): ?string
  397.     {
  398.         return $this->phoneContact;
  399.     }
  400.     public function setPhoneContact(?string $phoneContact): self
  401.     {
  402.         $this->phoneContact $phoneContact;
  403.         return $this;
  404.     }
  405.     public function getSecurityDeposit(): ?int
  406.     {
  407.         return $this->securityDeposit;
  408.     }
  409.     public function setSecurityDeposit(?int $securityDeposit): self
  410.     {
  411.         $this->securityDeposit $securityDeposit;
  412.         return $this;
  413.     }
  414.     public function getExpenses(): ?int
  415.     {
  416.         return $this->expenses;
  417.     }
  418.     public function setExpenses(?int $expenses): self
  419.     {
  420.         $this->expenses $expenses;
  421.         return $this;
  422.     }
  423.     public function getExpensesDescription(): ?string
  424.     {
  425.         return $this->expensesDescription;
  426.     }
  427.     public function setExpensesDescription(?string $expensesDescription): self
  428.     {
  429.         $this->expensesDescription $expensesDescription;
  430.         return $this;
  431.     }
  432.     public function getSurface(): ?int
  433.     {
  434.         return $this->surface;
  435.     }
  436.     public function setSurface(?int $surface): self
  437.     {
  438.         $this->surface $surface;
  439.         return $this;
  440.     }
  441.     public function isIsFurniture(): ?bool
  442.     {
  443.         return $this->isFurniture;
  444.     }
  445.     public function setIsFurniture(?bool $isFurniture): self
  446.     {
  447.         $this->isFurniture $isFurniture;
  448.         return $this;
  449.     }
  450.     public function isIsAidEligible(): ?bool
  451.     {
  452.         return $this->isAidEligible;
  453.     }
  454.     public function setIsAidEligible(?bool $isAidEligible): self
  455.     {
  456.         $this->isAidEligible $isAidEligible;
  457.         return $this;
  458.     }
  459.     /**
  460.      * @return Collection<int, BuildingEquipment>
  461.      */
  462.     public function getBuildingEquipment(): Collection
  463.     {
  464.         return $this->buildingEquipment;
  465.     }
  466.     public function addBuildingEquipment(BuildingEquipment $buildingEquipment): self
  467.     {
  468.         if (!$this->buildingEquipment->contains($buildingEquipment)) {
  469.             $this->buildingEquipment->add($buildingEquipment);
  470.             $buildingEquipment->setBuilding($this);
  471.         }
  472.         return $this;
  473.     }
  474.     public function removeBuildingEquipment(BuildingEquipment $buildingEquipment): self
  475.     {
  476.         if ($this->buildingEquipment->removeElement($buildingEquipment)) {
  477.             // set the owning side to null (unless already changed)
  478.             if ($buildingEquipment->getBuilding() === $this) {
  479.                 $buildingEquipment->setBuilding(null);
  480.             }
  481.         }
  482.         return $this;
  483.     }
  484.     /**
  485.      * @return Collection<int, BuildingDocument>
  486.      */
  487.     public function getBuildingDocuments(): Collection
  488.     {
  489.         return $this->buildingDocuments;
  490.     }
  491.     public function addBuildingDocument(BuildingDocument $buildingDocument): self
  492.     {
  493.         if (!$this->buildingDocuments->contains($buildingDocument)) {
  494.             $this->buildingDocuments->add($buildingDocument);
  495.             $buildingDocument->setBuilding($this);
  496.         }
  497.         return $this;
  498.     }
  499.     public function removeBuildingDocument(BuildingDocument $buildingDocument): self
  500.     {
  501.         if ($this->buildingDocuments->removeElement($buildingDocument)) {
  502.             // set the owning side to null (unless already changed)
  503.             if ($buildingDocument->getBuilding() === $this) {
  504.                 $buildingDocument->setBuilding(null);
  505.             }
  506.         }
  507.         return $this;
  508.     }
  509.     /**
  510.      * @return Collection<int, BuildingEditHistory>
  511.      */
  512.     public function getBuildingEditHistories(): Collection
  513.     {
  514.         return $this->buildingEditHistories;
  515.     }
  516.     public function addBuildingEditHistory(BuildingEditHistory $buildingEditHistory): self
  517.     {
  518.         if (!$this->buildingEditHistories->contains($buildingEditHistory)) {
  519.             $this->buildingEditHistories->add($buildingEditHistory);
  520.             $buildingEditHistory->setBuilding($this);
  521.         }
  522.         return $this;
  523.     }
  524.     public function removeBuildingEditHistory(BuildingEditHistory $buildingEditHistory): self
  525.     {
  526.         if ($this->buildingEditHistories->removeElement($buildingEditHistory)) {
  527.             // set the owning side to null (unless already changed)
  528.             if ($buildingEditHistory->getBuilding() === $this) {
  529.                 $buildingEditHistory->setBuilding(null);
  530.             }
  531.         }
  532.         return $this;
  533.     }
  534.     /**
  535.      * @return Collection<int, BuildingReportingHistory>
  536.      */
  537.     public function getBuildingReportingHistories(): Collection
  538.     {
  539.         return $this->buildingReportingHistories;
  540.     }
  541.     public function addBuildingReportingHistory(BuildingReportingHistory $buildingReportingHistory): self
  542.     {
  543.         if (!$this->buildingReportingHistories->contains($buildingReportingHistory)) {
  544.             $this->buildingReportingHistories->add($buildingReportingHistory);
  545.             $buildingReportingHistory->setBuilding($this);
  546.         }
  547.         return $this;
  548.     }
  549.     public function removeBuildingReportingHistory(BuildingReportingHistory $buildingReportingHistory): self
  550.     {
  551.         if ($this->buildingReportingHistories->removeElement($buildingReportingHistory)) {
  552.             // set the owning side to null (unless already changed)
  553.             if ($buildingReportingHistory->getBuilding() === $this) {
  554.                 $buildingReportingHistory->setBuilding(null);
  555.             }
  556.         }
  557.         return $this;
  558.     }
  559.     public function getFormat(): ?string
  560.     {
  561.         return $this->format;
  562.     }
  563.     public function setFormat(?string $format): self
  564.     {
  565.         $this->format $format;
  566.         return $this;
  567.     }
  568.     public function getCityEntity(): ?City
  569.     {
  570.         return $this->cityEntity;
  571.     }
  572.     public function setCityEntity(?City $cityEntity): self
  573.     {
  574.         $this->cityEntity $cityEntity;
  575.         return $this;
  576.     }
  577.     public function getPostalCode(): ?string
  578.     {
  579.         return $this->postalCode;
  580.     }
  581.     public function setPostalCode(?string $postalCode): self
  582.     {
  583.         $this->postalCode $postalCode;
  584.         return $this;
  585.     }
  586.     /**
  587.      * @return Collection<int, BuildingFolder>
  588.      */
  589.     public function getBuildingFolders(): Collection
  590.     {
  591.         return $this->buildingFolders;
  592.     }
  593.     public function addBuildingFolder(BuildingFolder $buildingFolder): self
  594.     {
  595.         if (!$this->buildingFolders->contains($buildingFolder)) {
  596.             $this->buildingFolders->add($buildingFolder);
  597.             $buildingFolder->setBuilding($this);
  598.         }
  599.         return $this;
  600.     }
  601.     public function removeBuildingFolder(BuildingFolder $buildingFolder): self
  602.     {
  603.         if ($this->buildingFolders->removeElement($buildingFolder)) {
  604.             // set the owning side to null (unless already changed)
  605.             if ($buildingFolder->getBuilding() === $this) {
  606.                 $buildingFolder->setBuilding(null);
  607.             }
  608.         }
  609.         return $this;
  610.     }
  611.     public function getResidence(): ?Residence
  612.     {
  613.         return $this->residence;
  614.     }
  615.     public function setResidence(?Residence $residence): self
  616.     {
  617.         $this->residence $residence;
  618.         return $this;
  619.     }
  620.     public function isIsBlocked(): ?bool
  621.     {
  622.         return $this->isBlocked;
  623.     }
  624.     public function setIsBlocked(?bool $isBlocked): self
  625.     {
  626.         $this->isBlocked $isBlocked;
  627.         return $this;
  628.     }
  629.     public function isIsFloor(): ?bool
  630.     {
  631.         return $this->isFloor;
  632.     }
  633.     public function setIsFloor(bool $isFloor): self
  634.     {
  635.         $this->isFloor $isFloor;
  636.         return $this;
  637.     }
  638.     public function getFloor(): ?int
  639.     {
  640.         return $this->floor;
  641.     }
  642.     public function setFloor(?int $floor): self
  643.     {
  644.         $this->floor $floor;
  645.         return $this;
  646.     }
  647.     /**
  648.      * @return Collection<int, HousingCertificate>
  649.      */
  650.     public function getHousingCertificates(): Collection
  651.     {
  652.         return $this->housingCertificates;
  653.     }
  654.     public function addHousingCertificate(HousingCertificate $housingCertificate): self
  655.     {
  656.         if (!$this->housingCertificates->contains($housingCertificate)) {
  657.             $this->housingCertificates->add($housingCertificate);
  658.             $housingCertificate->addBuilding($this);
  659.         }
  660.         return $this;
  661.     }
  662.     public function removeHousingCertificate(HousingCertificate $housingCertificate): self
  663.     {
  664.         if ($this->housingCertificates->removeElement($housingCertificate)) {
  665.             $housingCertificate->removeBuilding($this);
  666.         }
  667.         return $this;
  668.     }
  669.     public function getPDL(): ?string
  670.     {
  671.         return $this->PDL;
  672.     }
  673.     public function setPDL(?string $PDL): self
  674.     {
  675.         $this->PDL $PDL;
  676.         return $this;
  677.     }
  678.     public function getWifi(): ?string
  679.     {
  680.         return $this->wifi;
  681.     }
  682.     public function setWifi(?string $wifi): self
  683.     {
  684.         $this->wifi $wifi;
  685.         return $this;
  686.     }
  687.     public function getDEP(): ?string
  688.     {
  689.         return $this->DEP;
  690.     }
  691.     public function setDEP(?string $DEP): self
  692.     {
  693.         $this->DEP $DEP;
  694.         return $this;
  695.     }
  696.     public function getGES(): ?string
  697.     {
  698.         return $this->GES;
  699.     }
  700.     public function setGES(?string $GES): self
  701.     {
  702.         $this->GES $GES;
  703.         return $this;
  704.     }
  705.     public function getMaxFolders(): ?int
  706.     {
  707.         return $this->maxFolders;
  708.     }
  709.     public function setMaxFolders(?int $maxFolders): self
  710.     {
  711.         $this->maxFolders $maxFolders;
  712.         return $this;
  713.     }
  714.     public function getUniqueId(): ?string
  715.     {
  716.         return $this->uniqueId;
  717.     }
  718.     public function setUniqueId(?string $uniqueId): self
  719.     {
  720.         $this->uniqueId $uniqueId;
  721.         return $this;
  722.     }
  723.     /**
  724.      * @return Collection<int, WantedVisio>
  725.      */
  726.     public function getWantedVisios(): Collection
  727.     {
  728.         return $this->wantedVisios;
  729.     }
  730.     public function addWantedVisio(WantedVisio $wantedVisio): self
  731.     {
  732.         if (!$this->wantedVisios->contains($wantedVisio)) {
  733.             $this->wantedVisios->add($wantedVisio);
  734.             $wantedVisio->setBuilding($this);
  735.         }
  736.         return $this;
  737.     }
  738.     public function removeWantedVisio(WantedVisio $wantedVisio): self
  739.     {
  740.         if ($this->wantedVisios->removeElement($wantedVisio)) {
  741.             // set the owning side to null (unless already changed)
  742.             if ($wantedVisio->getBuilding() === $this) {
  743.                 $wantedVisio->setBuilding(null);
  744.             }
  745.         }
  746.         return $this;
  747.     }
  748.     public function getMinIncome(): ?int
  749.     {
  750.         return $this->minIncome;
  751.     }
  752.      
  753.     public function setMinIncome(?int $minIncome): void
  754.     {
  755.         $this->minIncome $minIncome;
  756.     }
  757.    
  758.     public function getHasGuarantor(): ?string
  759.     {
  760.         return $this->hasGuarantor;
  761.     }
  762.         
  763.     public function setHasGuarantor(?string $hasGuarantor): void
  764.     {
  765.         $this->hasGuarantor $hasGuarantor;
  766.     }
  767.     public function isIsEnd(): ?bool
  768.     {
  769.         return $this->isEnd;
  770.     }
  771.     public function setIsEnd(?bool $isEnd): self
  772.     {
  773.         $this->isEnd $isEnd;
  774.         return $this;
  775.     }
  776.     public function getLat(): ?float
  777.     {
  778.         return $this->lat;
  779.     }
  780.     public function setLat(?float $lat): self
  781.     {
  782.         $this->lat $lat;
  783.         return $this;
  784.     }
  785.     public function getLng(): ?float
  786.     {
  787.         return $this->lng;
  788.     }
  789.     public function setLng(?float $lng): self
  790.     {
  791.         $this->lng $lng;
  792.         return $this;
  793.     }
  794. }