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 $title null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $status null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $state null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $guaranteeType null;
  38.     #[ORM\Column]
  39.     private ?bool $isActive true;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $numberId null;
  42.     #[ORM\Column]
  43.     private ?float $rent null;
  44.     #[ORM\ManyToOne(inversedBy'buildings')]
  45.     #[ORM\JoinColumn(nullablefalse)]
  46.     private ?User $propertyManager null;
  47.     #[ORM\Column(typeTypes::TEXT,nullabletrue)]
  48.     private ?string $description null;
  49.     #[ORM\Column(nullabletrue)]
  50.     private ?int $leaseTerm null;
  51.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  52.     private ?\DateTimeInterface $editedAt null;
  53.     #[ORM\ManyToOne(inversedBy'tenantBuildings')]
  54.     private ?User $tenant null;
  55.     #[ORM\OneToMany(mappedBy'building'targetEntityRentalHistory::class, cascade: ['persist''remove'])]
  56.     private Collection $rentalHistories;
  57.     #[ORM\Column(type'json'nullabletrue)]
  58.     private ?array $houseRules null;
  59.     #[ORM\Column(type'json'nullabletrue)]
  60.     private ?array $interior = [];
  61.     #[ORM\Column(type'json'nullabletrue)]
  62.     private ?array $exterior = [];
  63.     #[ORM\Column(type'json'nullabletrue)]
  64.     private ?array $charges = [];
  65.     
  66.     #[ORM\Column(nullablefalse)]
  67.     private ?float $leaseDraftingFees null//frais de rédaction de bail et EDL
  68.     #[ORM\Column(length255nullabletrue)]
  69.     private ?string $contactName null;
  70.     #[ORM\Column(length255nullabletrue)]
  71.     private ?string $mailContact null;
  72.     #[ORM\Column(length255nullabletrue)]
  73.     private ?string $phoneContact null;
  74.     #[ORM\Column(nullabletrue)]
  75.     private ?float $securityDeposit null;
  76.     #[ORM\Column(nullabletrue)]
  77.     private ?int $expenses null;
  78.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  79.     private ?string $expensesDescription null;
  80.     #[ORM\Column(nullabletrue)]
  81.     private ?float $surface null;
  82.     #[ORM\Column(nullabletrue)]
  83.     private ?float $surfaceBedroom null;
  84.     #[ORM\Column(nullabletrue)]
  85.     private ?bool $isFurniture null;
  86.     #[ORM\Column(nullabletrue)]
  87.     private ?bool $isAidEligible null;
  88.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingEquipment::class, cascade: ['persist''remove'])]
  89.     private Collection $buildingEquipment;
  90.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingDocument::class, cascade: ['persist''remove'])]
  91.     private Collection $buildingDocuments;
  92.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingEditHistory::class, cascade: ['persist''remove'])]
  93.     private Collection $buildingEditHistories;
  94.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingReportingHistory::class, cascade: ['persist''remove'])]
  95.     private Collection $buildingReportingHistories;
  96.     #[ORM\Column(length255nullabletrue)]
  97.     private ?string $format null;
  98.     #[ORM\ManyToOne(inversedBy'buildings')]
  99.     private ?City $cityEntity null;
  100.     #[ORM\Column(length255nullabletrue)]
  101.     private ?string $postalCode null;
  102.     #[ORM\OneToMany(mappedBy'building'targetEntityBuildingFolder::class, cascade: ['persist''remove'])]
  103.     private Collection $buildingFolders;
  104.     #[ORM\ManyToOne(inversedBy'buildings')]
  105.     private ?Residence $residence null;
  106.     #[ORM\Column(nullabletrue)]
  107.     private ?bool $isBlocked null;
  108.     #[ORM\Column]
  109.     private ?bool $isFloor false;
  110.     #[ORM\Column(length255nullabletrue)]
  111.     private ?string $floor null;
  112.     #[ORM\ManyToMany(targetEntityHousingCertificate::class, mappedBy'building'cascade: ['persist''remove'])]
  113.     private Collection $housingCertificates;
  114.     #[ORM\Column(length255nullabletrue)]
  115.     private ?string $PDL null;
  116.     #[ORM\Column(length255nullabletrue)]
  117.     private ?string $wifi null;
  118.     #[ORM\Column(length255nullabletrue)]
  119.     private ?string $dep null;
  120.     #[ORM\Column(length255nullabletrue)]
  121.     private ?string $GES null;
  122.     #[ORM\Column(nullabletrue)]
  123.     private ?int $maxFolders null;
  124.     #[ORM\Column(length255nullabletrue)]
  125.     private ?string $uniqueId null;
  126.     #[ORM\OneToMany(mappedBy'building'targetEntityWantedVisio::class, cascade: ['persist''remove'])]
  127.     private Collection $wantedVisios;
  128.     #[ORM\Column(length255nullabletrue)]
  129.     private ?int $minIncome null;
  130.     #[ORM\Column(nullabletrue)]
  131.     private ?bool $isEnd null;
  132.     #[ORM\Column(nullabletrue)]
  133.     private ?float $lat null;
  134.     #[ORM\Column(nullabletrue)]
  135.     private ?float $lng null;
  136.     #[ORM\Column(nullabletrue)]
  137.     private ?bool $isAuthorizeAtestation null;
  138.     #[ORM\Column(type'datetime'nullabletrue)]
  139.     private ?\DateTimeInterface $lastAtestation null;
  140.     #[ORM\Column(nullabletrue)]
  141.     private ?string $hasGuarantor null;
  142.     #[ORM\Column(nullablefalse)]
  143.     private ?int $timeBail null;
  144.     #[ORM\Column(length255nullabletrue)]
  145.     private ?string $typeBed null;
  146.     #[ORM\Column(nullablefalse)]
  147.     private ?bool $privateBathroom null;
  148.     #[ORM\Column(nullablefalse)]
  149.     private ?int $bathrooms null;
  150.     #[ORM\Column(nullablefalse)]
  151.     private ?bool $complexProperty null;
  152.     #[ORM\Column(nullablefalse)]
  153.     private ?int $complexPropertyId null;
  154.     #[ORM\Column(type'string'length255nullabletrue)]
  155.     private ?string $cover null;
  156.     #[ORM\Column]
  157.     private ?bool $hasReservation null;
  158.     #[ORM\Column]
  159.     private ?bool $hideAddress null;
  160.     #[ORM\Column(nullablefalse)]
  161.     private ?int $bedroomNumber null;
  162.     
  163.     #[ORM\Column]
  164.     private ?int $discountPrice null;
  165.     #[ORM\Column(type'datetime'nullabletrue)]
  166.     private ?\DateTimeInterface $dateEndPromo null;
  167.     
  168.     public function __construct()
  169.     {
  170.         $this->createdAt = new \DateTimeImmutable('now', new \DateTimeZone('Europe/Paris'));
  171.         $this->editedAt = new \DateTime('now', new \DateTimeZone('Europe/Paris'));
  172.         $this->rentalHistories = new ArrayCollection();
  173.         $this->buildingEquipment = new ArrayCollection();
  174.         $this->buildingDocuments = new ArrayCollection();
  175.         $this->buildingEditHistories = new ArrayCollection();
  176.         $this->buildingReportingHistories = new ArrayCollection();
  177.         $this->buildingFolders = new ArrayCollection();
  178.         $this->housingCertificates = new ArrayCollection();
  179.         $this->wantedVisios = new ArrayCollection();
  180.         $this->setTimeBail(12);
  181.     }
  182.     
  183.     public function getCover(): ?string
  184.     {
  185.         return $this->cover;
  186.     }
  187.     public function setCover(?string $cover): self
  188.     {
  189.         $this->cover $cover;
  190.         return $this;
  191.     }
  192.     
  193.     public function getTimeBail(): ?int
  194.     {
  195.         return $this->timeBail;
  196.     }
  197.     public function setTimeBail(?int $timeBail): self
  198.     {
  199.         $this->timeBail $timeBail;
  200.         return $this;
  201.     }
  202.     public function getPrivateBathroom(): ?bool
  203.     {
  204.         return $this->privateBathroom;
  205.     }
  206.     public function setPrivateBathroom(?bool $privateBathroom): self
  207.     {
  208.         $this->privateBathroom $privateBathroom;
  209.         return $this;
  210.     }
  211.     public function getBathrooms(): ?int
  212.     {
  213.         return $this->bathrooms;
  214.     }
  215.     public function setBathrooms(?int $bathrooms): self
  216.     {
  217.         $this->bathrooms $bathrooms;
  218.         return $this;
  219.     }
  220.     public function getTypeBed(): ?string
  221.     {
  222.         return $this->typeBed;
  223.     }
  224.     public function setTypeBed(?string $typeBed): self
  225.     {
  226.         $this->typeBed $typeBed;
  227.         return $this;
  228.     }
  229.     public function getComplexProperty(): ?bool
  230.     {
  231.         return $this->complexProperty;
  232.     }
  233.     public function setComplexProperty(?bool $complexProperty): self
  234.     {
  235.         $this->complexProperty $complexProperty;
  236.         return $this;
  237.     }
  238.     public function getComplexPropertyId(): ?int
  239.     {
  240.         return $this->complexPropertyId;
  241.     }
  242.     public function setComplexPropertyId(?int $complexPropertyId): self
  243.     {
  244.         $this->complexPropertyId $complexPropertyId;
  245.         return $this;
  246.     }
  247.     public function getRefBuilding(): string
  248.     {
  249.         return "R".$this->getCreatedAt()->format('dmY').$this->getId();
  250.     }
  251.     public function getLastAtestationt(): ?\DateTimeInterface
  252.     {
  253.         return $this->lastAtestation;
  254.     }
  255.     public function setLastAtestation(?\DateTimeInterface $lastAtestation): self
  256.     {
  257.         $this->lastAtestation $lastAtestation;
  258.         return $this;
  259.     }
  260.     public function __toString(): string
  261.     {
  262.         return $this->numberId ?? $this->id;
  263.     }
  264.     public function isAuthorizeAtestation(): ?bool{
  265.         return $this->isAuthorizeAtestation;
  266.     }
  267.     public function setIsAuthorizeAtestation(?bool $authorizeAtestation): self{
  268.         $this->isAuthorizeAtestation =$authorizeAtestation;
  269.         return $this;
  270.     }
  271.     public function getId(): ?int
  272.     {
  273.         return $this->id;
  274.     }
  275.     public function getType(): ?string
  276.     {
  277.         return $this->type;
  278.     }
  279.     public function setType(?string $type): self
  280.     {
  281.         $this->type $type;
  282.         return $this;
  283.     }
  284.     public function getBorough(): ?string
  285.     {
  286.         return $this->borough;
  287.     }
  288.     public function setBorough(?string $borough): self
  289.     {
  290.         $this->borough $borough;
  291.         return $this;
  292.     }
  293.     public function getStreet(): ?string
  294.     {
  295.         return $this->street;
  296.     }
  297.     public function setStreet(?string $street): self
  298.     {
  299.         $this->street $street;
  300.         return $this;
  301.     }
  302.     public function getStreetNumber(): ?string
  303.     {
  304.         return $this->streetNumber;
  305.     }
  306.     public function setStreetNumber(?string $streetNumber): self
  307.     {
  308.         $this->streetNumber $streetNumber;
  309.         return $this;
  310.     }
  311.     public function getCountry(): ?string
  312.     {
  313.         return $this->country;
  314.     }
  315.     public function setCountry(?string $country): self
  316.     {
  317.         $this->country $country;
  318.         return $this;
  319.     }
  320.     public function getCreatedAt(): ?\DateTimeImmutable
  321.     {
  322.         return $this->createdAt;
  323.     }
  324.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  325.     {
  326.         $this->createdAt $createdAt;
  327.         return $this;
  328.     }
  329.     public function getDateStartAt(): ?\DateTimeInterface
  330.     {
  331.         return $this->dateStartAt;
  332.     }
  333.     public function setDateStartAt(?\DateTimeInterface $dateStartAt): self
  334.     {
  335.         $this->dateStartAt $dateStartAt;
  336.         return $this;
  337.     }
  338.     public function getTitle(): ?string
  339.     {
  340.         return $this->title;
  341.     }
  342.     public function setTitle(?string $title): self
  343.     {
  344.         $this->title $title;
  345.         return $this;
  346.     }
  347.     public function getStatus(): ?string
  348.     {
  349.         return $this->status;
  350.     }
  351.     public function setStatus(?string $status): self
  352.     {
  353.         $this->status $status;
  354.         return $this;
  355.     }
  356.     public function getState(): ?string
  357.     {
  358.         return $this->state;
  359.     }
  360.     public function setState(?string $state): self
  361.     {
  362.         $this->state $state;
  363.         return $this;
  364.     }
  365.     public function getGuaranteeType(): ?string
  366.     {
  367.         return $this->guaranteeType;
  368.     }
  369.     public function setGuaranteeType(?string $guaranteeType): self
  370.     {
  371.         $this->guaranteeType $guaranteeType;
  372.         return $this;
  373.     }
  374.     public function getIsActive(): ?bool
  375. {
  376.     return $this->isActive;
  377. }
  378.     public function setIsActive(bool $isActive): self
  379.     {
  380.         $this->isActive $isActive;
  381.         return $this;
  382.     }
  383.     public function getNumberId(): ?string
  384.     {
  385.         return $this->numberId;
  386.     }
  387.     public function setNumberId(string $numberId): self
  388.     {
  389.         $this->numberId $numberId;
  390.         return $this;
  391.     }
  392.     public function getRent(): ?float
  393.     {
  394.         return $this->rent;
  395.     }
  396.     public function setRent(float $rent): self
  397.     {
  398.         $this->rent $rent;
  399.         return $this;
  400.     }
  401.     public function getPropertyManager(): ?User
  402.     {
  403.         return $this->propertyManager;
  404.     }
  405.     public function setPropertyManager(?User $propertyManager): self
  406.     {
  407.         $this->propertyManager $propertyManager;
  408.         return $this;
  409.     }
  410.     public function getDescription(): ?string
  411.     {
  412.         return $this->description;
  413.     }
  414.     public function setDescription(?string $description): self
  415.     {
  416.         $this->description $description;
  417.         return $this;
  418.     }
  419.     public function getLeaseTerm(): ?int
  420.     {
  421.         return $this->leaseTerm;
  422.     }
  423.     public function setLeaseTerm(?int $leaseTerm): self
  424.     {
  425.         $this->leaseTerm $leaseTerm;
  426.         return $this;
  427.     }
  428.     public function getEditedAt(): ?\DateTimeInterface
  429.     {
  430.         return $this->editedAt;
  431.     }
  432.     public function setEditedAt(\DateTimeInterface $editedAt): self
  433.     {
  434.         $this->editedAt $editedAt;
  435.         return $this;
  436.     }
  437.     public function getTenant(): ?User
  438.     {
  439.         return $this->tenant;
  440.     }
  441.     public function setTenant(?User $tenant): self
  442.     {
  443.         $this->tenant $tenant;
  444.         return $this;
  445.     }
  446.     /**
  447.      * @return Collection<int, RentalHistory>
  448.      */
  449.     public function getRentalHistories(): Collection
  450.     {
  451.         return $this->rentalHistories;
  452.     }
  453.     public function addRentalHistory(RentalHistory $rentalHistory): self
  454.     {
  455.         if (!$this->rentalHistories->contains($rentalHistory)) {
  456.             $this->rentalHistories->add($rentalHistory);
  457.             $rentalHistory->setBuilding($this);
  458.         }
  459.         return $this;
  460.     }
  461.     public function removeRentalHistory(RentalHistory $rentalHistory): self
  462.     {
  463.         if ($this->rentalHistories->removeElement($rentalHistory)) {
  464.             // set the owning side to null (unless already changed)
  465.             if ($rentalHistory->getBuilding() === $this) {
  466.                 $rentalHistory->setBuilding(null);
  467.             }
  468.         }
  469.         return $this;
  470.     }
  471.     public function getHouseRules(): ?array
  472.     {
  473.         return $this->houseRules;
  474.     }
  475.     public function setHouseRules(?array $houseRules): self
  476.     {
  477.         $this->houseRules $houseRules;
  478.         return $this;
  479.     }
  480.     public function getInterior(): ?array
  481.     {
  482.         return $this->interior;
  483.     }
  484.     
  485.     public function setInterior(?array $interior): self
  486.     {
  487.         $this->interior $interior;
  488.         return $this;
  489.     }
  490.     public function getExterior(): ?array
  491.     {
  492.         return $this->exterior;
  493.     }
  494.     
  495.     public function setExterior(?array $exterior): self
  496.     {
  497.         $this->exterior $exterior;
  498.         return $this;
  499.     }
  500.     public function getCharges(): ?array
  501.     {
  502.         return $this->charges;
  503.     }
  504.     
  505.     public function setCharges(?array $charges): self
  506.     {
  507.         $this->charges $charges;
  508.         return $this;
  509.     }
  510.     
  511.     public function getLeaseDraftingFees(): ?float
  512.     {
  513.         return $this->leaseDraftingFees;
  514.     }
  515.     public function setLeaseDraftingFees(?float $leaseDraftingFees): self
  516.     {
  517.         $this->leaseDraftingFees $leaseDraftingFees;
  518.         return $this;
  519.     }
  520.     public function getContactName(): ?string
  521.     {
  522.         return $this->contactName;
  523.     }
  524.     public function setContactName(?string $contactName): self
  525.     {
  526.         $this->contactName $contactName;
  527.         return $this;
  528.     }
  529.     public function getMailContact(): ?string
  530.     {
  531.         return $this->mailContact;
  532.     }
  533.     public function setMailContact(?string $mailContact): self
  534.     {
  535.         $this->mailContact $mailContact;
  536.         return $this;
  537.     }
  538.     public function getPhoneContact(): ?string
  539.     {
  540.         return $this->phoneContact;
  541.     }
  542.     public function setPhoneContact(?string $phoneContact): self
  543.     {
  544.         $this->phoneContact $phoneContact;
  545.         return $this;
  546.     }
  547.     public function getSecurityDeposit(): ?float
  548.     {
  549.         return $this->securityDeposit;
  550.     }
  551.     public function setSecurityDeposit(?float $securityDeposit): self
  552.     {
  553.         $this->securityDeposit $securityDeposit;
  554.         return $this;
  555.     }
  556.     public function getExpenses(): ?int
  557.     {
  558.         return $this->expenses;
  559.     }
  560.     public function setExpenses(?int $expenses): self
  561.     {
  562.         $this->expenses $expenses;
  563.         return $this;
  564.     }
  565.     public function getExpensesDescription(): ?string
  566.     {
  567.         return $this->expensesDescription;
  568.     }
  569.     public function setExpensesDescription(?string $expensesDescription): self
  570.     {
  571.         $this->expensesDescription $expensesDescription;
  572.         return $this;
  573.     }
  574.     public function getSurface(): ?float
  575.     {
  576.         return $this->surface;
  577.     }
  578.     public function setSurface(?float $surface): self
  579.     {
  580.         $this->surface $surface;
  581.         return $this;
  582.     }
  583.     public function getSurfaceBedroom(): ?float
  584.     {
  585.         return $this->surfaceBedroom;
  586.     }
  587.     public function setSurfaceBedroom(?float $surfaceBedroom): self
  588.     {
  589.         $this->surfaceBedroom $surfaceBedroom;
  590.         return $this;
  591.     }
  592.     public function isIsFurniture(): ?bool
  593.     {
  594.         return $this->isFurniture;
  595.     }
  596.     public function setIsFurniture(?bool $isFurniture): self
  597.     {
  598.         $this->isFurniture $isFurniture;
  599.         return $this;
  600.     }
  601.     public function isIsAidEligible(): ?bool
  602.     {
  603.         return $this->isAidEligible;
  604.     }
  605.     public function setIsAidEligible(?bool $isAidEligible): self
  606.     {
  607.         $this->isAidEligible $isAidEligible;
  608.         return $this;
  609.     }
  610.     public function isHasReservation(): ?bool
  611.     {
  612.         return $this->hasReservation;
  613.     }
  614.     public function setHasReservation(?bool $hasReservation): self
  615.     {
  616.         $this->hasReservation $hasReservation;
  617.         return $this;
  618.     }
  619.     public function getHideAddress(): ?bool
  620.     {
  621.         return $this->hideAddress;
  622.     }
  623.     public function setHideAddress(bool $hideAddress): self
  624.     {
  625.         $this->hideAddress $hideAddress;
  626.         return $this;
  627.     }
  628.     public function getBedroomNumber(): ?int
  629.     {
  630.         return $this->bedroomNumber;
  631.     }
  632.     public function setBedroomNumber(?int $bedroomNumber): self
  633.     {
  634.         $this->bedroomNumber $bedroomNumber;
  635.         return $this;
  636.     }
  637.     
  638.     public function getDiscountPrice(): ?int
  639.     {
  640.         return $this->discountPrice;
  641.     }
  642.     public function setDiscountPrice(?int $discountPrice): self
  643.     {
  644.         $this->discountPrice $discountPrice;
  645.         return $this;
  646.     }
  647.     
  648.     public function getDateEndPromo(): ?\DateTimeInterface
  649.     {
  650.         return $this->dateEndPromo;
  651.     }
  652.     public function setDateEndPromo(\DateTimeInterface $dateEndPromo): self
  653.     {
  654.         $this->dateEndPromo $dateEndPromo;
  655.         return $this;
  656.     }
  657.     /**
  658.      * @return Collection<int, BuildingEquipment>
  659.      */
  660.     public function getBuildingEquipment(): Collection
  661.     {
  662.         return $this->buildingEquipment;
  663.     }
  664.     public function addBuildingEquipment(BuildingEquipment $buildingEquipment): self
  665.     {
  666.         if (!$this->buildingEquipment->contains($buildingEquipment)) {
  667.             $this->buildingEquipment->add($buildingEquipment);
  668.             $buildingEquipment->setBuilding($this);
  669.         }
  670.         return $this;
  671.     }
  672.     public function removeBuildingEquipment(BuildingEquipment $buildingEquipment): self
  673.     {
  674.         if ($this->buildingEquipment->removeElement($buildingEquipment)) {
  675.             // set the owning side to null (unless already changed)
  676.             if ($buildingEquipment->getBuilding() === $this) {
  677.                 $buildingEquipment->setBuilding(null);
  678.             }
  679.         }
  680.         return $this;
  681.     }
  682.     /**
  683.      * @return Collection<int, BuildingDocument>
  684.      */
  685.     public function getBuildingDocuments(): Collection
  686.     {
  687.         return $this->buildingDocuments;
  688.     }
  689.     public function setBuildingDocuments(ArrayCollection $documents) {
  690.         $this->buildingDocuments $documents;
  691.     }
  692.     public function addBuildingDocument(BuildingDocument $buildingDocument): self
  693.     {
  694.         if (!$this->buildingDocuments->contains($buildingDocument)) {
  695.             $this->buildingDocuments->add($buildingDocument);
  696.             $buildingDocument->setBuilding($this);
  697.         }
  698.         return $this;
  699.     }
  700.     public function removeBuildingDocument(BuildingDocument $buildingDocument): self
  701.     {
  702.         if ($this->buildingDocuments->removeElement($buildingDocument)) {
  703.             // set the owning side to null (unless already changed)
  704.             if ($buildingDocument->getBuilding() === $this) {
  705.                 $buildingDocument->setBuilding(null);
  706.             }
  707.         }
  708.         return $this;
  709.     }
  710.     /**
  711.      * @return Collection<int, BuildingEditHistory>
  712.      */
  713.     public function getBuildingEditHistories(): Collection
  714.     {
  715.         return $this->buildingEditHistories;
  716.     }
  717.     public function addBuildingEditHistory(BuildingEditHistory $buildingEditHistory): self
  718.     {
  719.         if (!$this->buildingEditHistories->contains($buildingEditHistory)) {
  720.             $this->buildingEditHistories->add($buildingEditHistory);
  721.             $buildingEditHistory->setBuilding($this);
  722.         }
  723.         return $this;
  724.     }
  725.     public function removeBuildingEditHistory(BuildingEditHistory $buildingEditHistory): self
  726.     {
  727.         if ($this->buildingEditHistories->removeElement($buildingEditHistory)) {
  728.             // set the owning side to null (unless already changed)
  729.             if ($buildingEditHistory->getBuilding() === $this) {
  730.                 $buildingEditHistory->setBuilding(null);
  731.             }
  732.         }
  733.         return $this;
  734.     }
  735.     /**
  736.      * @return Collection<int, BuildingReportingHistory>
  737.      */
  738.     public function getBuildingReportingHistories(): Collection
  739.     {
  740.         return $this->buildingReportingHistories;
  741.     }
  742.     public function addBuildingReportingHistory(BuildingReportingHistory $buildingReportingHistory): self
  743.     {
  744.         if (!$this->buildingReportingHistories->contains($buildingReportingHistory)) {
  745.             $this->buildingReportingHistories->add($buildingReportingHistory);
  746.             $buildingReportingHistory->setBuilding($this);
  747.         }
  748.         return $this;
  749.     }
  750.     public function removeBuildingReportingHistory(BuildingReportingHistory $buildingReportingHistory): self
  751.     {
  752.         if ($this->buildingReportingHistories->removeElement($buildingReportingHistory)) {
  753.             // set the owning side to null (unless already changed)
  754.             if ($buildingReportingHistory->getBuilding() === $this) {
  755.                 $buildingReportingHistory->setBuilding(null);
  756.             }
  757.         }
  758.         return $this;
  759.     }
  760.     public function getFormat(): ?string
  761.     {
  762.         return $this->format;
  763.     }
  764.     public function setFormat(?string $format): self
  765.     {
  766.         $this->format $format;
  767.         return $this;
  768.     }
  769.     public function getCityEntity(): ?City
  770.     {
  771.         return $this->cityEntity;
  772.     }
  773.     public function setCityEntity(?City $cityEntity): self
  774.     {
  775.         $this->cityEntity $cityEntity;
  776.         return $this;
  777.     }
  778.     public function getPostalCode(): ?string
  779.     {
  780.         return $this->postalCode;
  781.     }
  782.     public function setPostalCode(?string $postalCode): self
  783.     {
  784.         $this->postalCode $postalCode;
  785.         return $this;
  786.     }
  787.     /**
  788.      * @return Collection<int, BuildingFolder>
  789.      */
  790.     public function getBuildingFolders(): Collection
  791.     {
  792.         return $this->buildingFolders;
  793.     }
  794.     public function addBuildingFolder(BuildingFolder $buildingFolder): self
  795.     {
  796.         if (!$this->buildingFolders->contains($buildingFolder)) {
  797.             $this->buildingFolders->add($buildingFolder);
  798.             $buildingFolder->setBuilding($this);
  799.         }
  800.         return $this;
  801.     }
  802.     public function removeBuildingFolder(BuildingFolder $buildingFolder): self
  803.     {
  804.         if ($this->buildingFolders->removeElement($buildingFolder)) {
  805.             // set the owning side to null (unless already changed)
  806.             if ($buildingFolder->getBuilding() === $this) {
  807.                 $buildingFolder->setBuilding(null);
  808.             }
  809.         }
  810.         return $this;
  811.     }
  812.     public function getResidence(): ?Residence
  813.     {
  814.         return $this->residence;
  815.     }
  816.     public function setResidence(?Residence $residence): self
  817.     {
  818.         $this->residence $residence;
  819.         return $this;
  820.     }
  821.     public function isIsBlocked(): ?bool
  822.     {
  823.         return $this->isBlocked;
  824.     }
  825.     public function setIsBlocked(?bool $isBlocked): self
  826.     {
  827.         $this->isBlocked $isBlocked;
  828.         return $this;
  829.     }
  830.     public function isIsFloor(): ?bool
  831.     {
  832.         return $this->isFloor;
  833.     }
  834.     public function setIsFloor(bool $isFloor): self
  835.     {
  836.         $this->isFloor $isFloor;
  837.         return $this;
  838.     }
  839.     public function getFloor(): ?string
  840.     {
  841.         return $this->floor;
  842.     }
  843.     public function setFloor(?string $floor): self
  844.     {
  845.         $this->floor $floor;
  846.         return $this;
  847.     }
  848.     /**
  849.      * @return Collection<int, HousingCertificate>
  850.      */
  851.     public function getHousingCertificates(): Collection
  852.     {
  853.         return $this->housingCertificates;
  854.     }
  855.     public function addHousingCertificate(HousingCertificate $housingCertificate): self
  856.     {
  857.         if (!$this->housingCertificates->contains($housingCertificate)) {
  858.             $this->housingCertificates->add($housingCertificate);
  859.             $housingCertificate->addBuilding($this);
  860.         }
  861.         return $this;
  862.     }
  863.     public function removeHousingCertificate(HousingCertificate $housingCertificate): self
  864.     {
  865.         if ($this->housingCertificates->removeElement($housingCertificate)) {
  866.             $housingCertificate->removeBuilding($this);
  867.         }
  868.         return $this;
  869.     }
  870.     public function getPDL(): ?string
  871.     {
  872.         return $this->PDL;
  873.     }
  874.     public function setPDL(?string $PDL): self
  875.     {
  876.         $this->PDL $PDL;
  877.         return $this;
  878.     }
  879.     public function getWifi(): ?string
  880.     {
  881.         return $this->wifi;
  882.     }
  883.     public function setWifi(?string $wifi): self
  884.     {
  885.         $this->wifi $wifi;
  886.         return $this;
  887.     }
  888.     public function getdep(): ?string
  889.     {
  890.         return $this->dep;
  891.     }
  892.     public function setdep(?string $dep): self
  893.     {
  894.         $this->dep $dep;
  895.         return $this;
  896.     }
  897.     public function getGES(): ?string
  898.     {
  899.         return $this->GES;
  900.     }
  901.     public function setGES(?string $GES): self
  902.     {
  903.         $this->GES $GES;
  904.         return $this;
  905.     }
  906.     public function getMaxFolders(): ?int
  907.     {
  908.         return $this->maxFolders;
  909.     }
  910.     public function setMaxFolders(?int $maxFolders): self
  911.     {
  912.         $this->maxFolders $maxFolders;
  913.         return $this;
  914.     }
  915.     public function getUniqueId(): ?string
  916.     {
  917.         return $this->uniqueId;
  918.     }
  919.     public function setUniqueId(?string $uniqueId): self
  920.     {
  921.         $this->uniqueId $uniqueId;
  922.         return $this;
  923.     }
  924.     /**
  925.      * @return Collection<int, WantedVisio>
  926.      */
  927.     public function getWantedVisios(): Collection
  928.     {
  929.         return $this->wantedVisios;
  930.     }
  931.     public function addWantedVisio(WantedVisio $wantedVisio): self
  932.     {
  933.         if (!$this->wantedVisios->contains($wantedVisio)) {
  934.             $this->wantedVisios->add($wantedVisio);
  935.             $wantedVisio->setBuilding($this);
  936.         }
  937.         return $this;
  938.     }
  939.     public function removeWantedVisio(WantedVisio $wantedVisio): self
  940.     {
  941.         if ($this->wantedVisios->removeElement($wantedVisio)) {
  942.             // set the owning side to null (unless already changed)
  943.             if ($wantedVisio->getBuilding() === $this) {
  944.                 $wantedVisio->setBuilding(null);
  945.             }
  946.         }
  947.         return $this;
  948.     }
  949.     public function getMinIncome(): ?int
  950.     {
  951.         return $this->minIncome;
  952.     }
  953.      
  954.     public function setMinIncome(?int $minIncome): void
  955.     {
  956.         $this->minIncome $minIncome;
  957.     }
  958.    
  959.     public function getHasGuarantor(): ?string
  960.     {
  961.         return $this->hasGuarantor;
  962.     }
  963.         
  964.     public function setHasGuarantor(?string $hasGuarantor): void
  965.     {
  966.         $this->hasGuarantor $hasGuarantor;
  967.     }
  968.     public function isIsEnd(): ?bool
  969.     {
  970.         return $this->isEnd;
  971.     }
  972.     public function setIsEnd(?bool $isEnd): self
  973.     {
  974.         $this->isEnd $isEnd;
  975.         return $this;
  976.     }
  977.     public function getLat(): ?float
  978.     {
  979.         return $this->lat;
  980.     }
  981.     public function setLat(?float $lat): self
  982.     {
  983.         $this->lat $lat;
  984.         return $this;
  985.     }
  986.     public function getLng(): ?float
  987.     {
  988.         return $this->lng;
  989.     }
  990.     public function setLng(?float $lng): self
  991.     {
  992.         $this->lng $lng;
  993.         return $this;
  994.     }
  995. }