src/Entity/ContactInvestissementImmo.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactInvestissementImmoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use DateTimeImmutable;
  8. use Symfony\Component\HttpFoundation\File\File;
  9. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  10. #[ORM\Entity(repositoryClassContactInvestissementImmoRepository::class)]
  11. /**
  12.  * @Vich\Uploadable
  13.  */
  14. class ContactInvestissementImmo
  15. {
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue]
  18.     #[ORM\Column(type'integer')]
  19.     private $id;
  20.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'contactInvestissementImmos')]
  21.     private $accountingFirm;
  22.     // projet
  23.     #[ORM\Column(type'string'length255)]
  24.     private $purchasePrice;
  25.     #[ORM\Column(type'boolean')]
  26.     private $contribution;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private $amountContribution;
  29.     #[ORM\Column(type'boolean'nullabletrue)]
  30.     private $bankLoan;
  31.     #[ORM\Column(type'string'length255nullabletrue)]
  32.     private $amountLoan;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private $durationLoan;
  35.     #[ORM\Column(type'string'length255nullabletrue)]
  36.     private $rateLoan;
  37.     #[ORM\Column(type'boolean')]
  38.     private $agencyFees;
  39.     #[ORM\Column(type'boolean')]
  40.     private $notaryFees;
  41.     #[ORM\Column(type'string'nullabletrue)]
  42.     private $notaryFeesAmount;
  43.     #[ORM\Column(type'string'nullabletrue)]
  44.     private $agencyFeesAmount;
  45.     #[ORM\Column(type'boolean')]
  46.     private $work;
  47.     #[ORM\Column(type'string'length255nullabletrue)]
  48.     private $amountsWork;
  49.     // immobilier
  50.     #[ORM\Column(type'string'length255)]
  51.     private $businessStructure;
  52.     #[ORM\Column(type'string'length255)]
  53.     private $numberProperties;
  54.     // properties
  55.     #[ORM\OneToMany(mappedBy'contactInvestissementImmo'targetEntityContactInvestissementImmoProperty::class)]
  56.     private $properties;
  57.     // foyer fiscal
  58.     #[ORM\Column(type'string'length255)]
  59.     private $numberPartTax;
  60.     #[ORM\Column(type'string'length255)]
  61.     private $taxReferanceIncome;
  62.     //detail
  63.     #[ORM\Column(type'text')]
  64.     private $messageFree;
  65.     //récapitulatif
  66.     #[ORM\Column(type'string'length255)]
  67.     private $name;
  68.     #[ORM\Column(type'string'length255)]
  69.     private $firstname;
  70.     #[ORM\Column(type'string'length50)]
  71.     private $phone;
  72.     #[ORM\Column(type'string'length255)]
  73.     private $email;
  74.     #[ORM\Column(type'string'length255)]
  75.     private $adress;
  76.     #[ORM\Column(type'string'length20)]
  77.     private ?string $paymentMethod null;
  78.     #[ORM\Column(type'string'length255)]
  79.     private $zipCode;
  80.     #[ORM\Column(type'string'length255)]
  81.     private $city;
  82.     #[ORM\Column(type'datetime_immutable')]
  83.     private $createdAt;
  84.     #[ORM\Column(type'string'length255nullabletrue)]
  85.     private $reference;
  86.     #[ORM\Column(type'string'length255nullabletrue)]
  87.     private $status;
  88.     #[ORM\Column(type'string'nullabletrue)]
  89.     private $pdfName;
  90.     #[ORM\Column(type'integer'nullabletrue)]
  91.     private $pdfSize;
  92.     #[ORM\Column(type'datetime'nullabletrue)]
  93.     private $pdfUpdatedAt;
  94.     /**
  95.      * @Vich\UploadableField(mapping="contactCreationSociete", fileNameProperty="pdfName", size="pdfSize")
  96.      * @var File|null
  97.      */
  98.     private $pdfFile;
  99.     public function __construct()
  100.     {
  101.         $this->properties = new ArrayCollection();
  102.     }
  103.     public function getId(): ?int
  104.     {
  105.         return $this->id;
  106.     }
  107.     public function getName(): ?string
  108.     {
  109.         return $this->name;
  110.     }
  111.     public function setName(string $name): self
  112.     {
  113.         $this->name $name;
  114.         return $this;
  115.     }
  116.     public function getFirstname(): ?string
  117.     {
  118.         return $this->firstname;
  119.     }
  120.     public function setFirstname(string $firstname): self
  121.     {
  122.         $this->firstname $firstname;
  123.         return $this;
  124.     }
  125.     public function getPhone(): ?string
  126.     {
  127.         return $this->phone;
  128.     }
  129.     public function setPhone(string $phone): self
  130.     {
  131.         $this->phone $phone;
  132.         return $this;
  133.     }
  134.     public function getEmail(): ?string
  135.     {
  136.         return $this->email;
  137.     }
  138.     public function setEmail(string $email): self
  139.     {
  140.         $this->email $email;
  141.         return $this;
  142.     }
  143.     public function getAdress(): ?string
  144.     {
  145.         return $this->adress;
  146.     }
  147.     public function setAdress(string $adress): self
  148.     {
  149.         $this->adress $adress;
  150.         return $this;
  151.     }
  152.     public function getBusinessStructure(): ?string
  153.     {
  154.         return $this->businessStructure;
  155.     }
  156.     public function setBusinessStructure(string $businessStructure): self
  157.     {
  158.         $this->businessStructure $businessStructure;
  159.         return $this;
  160.     }
  161.     public function getNumberProperties(): ?string
  162.     {
  163.         return $this->numberProperties;
  164.     }
  165.     public function setNumberProperties(string $numberProperties): self
  166.     {
  167.         $this->numberProperties $numberProperties;
  168.         return $this;
  169.     }
  170.     public function getPurchasePrice(): ?string
  171.     {
  172.         return $this->purchasePrice;
  173.     }
  174.     public function setPurchasePrice(string $purchasePrice): self
  175.     {
  176.         $this->purchasePrice $purchasePrice;
  177.         return $this;
  178.     }
  179.     public function getContribution(): ?bool
  180.     {
  181.         return $this->contribution;
  182.     }
  183.     public function setContribution(bool $contribution): self
  184.     {
  185.         $this->contribution $contribution;
  186.         return $this;
  187.     }
  188.     public function getAmountContribution(): ?string
  189.     {
  190.         return $this->amountContribution;
  191.     }
  192.     public function setAmountContribution(string $amountContribution): self
  193.     {
  194.         $this->amountContribution $amountContribution;
  195.         return $this;
  196.     }
  197.     public function isBankLoan(): ?bool
  198.     {
  199.         return $this->bankLoan;
  200.     }
  201.     public function setBankLoan(?bool $bankLoan): self
  202.     {
  203.         $this->bankLoan $bankLoan;
  204.         return $this;
  205.     }
  206.     public function getAmountLoan(): ?string
  207.     {
  208.         return $this->amountLoan;
  209.     }
  210.     public function setAmountLoan(?string $amountLoan): self
  211.     {
  212.         $this->amountLoan $amountLoan;
  213.         return $this;
  214.     }
  215.     public function getDurationLoan(): ?string
  216.     {
  217.         return $this->durationLoan;
  218.     }
  219.     public function setDurationLoan(?string $durationLoan): self
  220.     {
  221.         $this->durationLoan $durationLoan;
  222.         return $this;
  223.     }
  224.     public function getRateLoan(): ?string
  225.     {
  226.         return $this->rateLoan;
  227.     }
  228.     public function setRateLoan(?string $rateLoan): self
  229.     {
  230.         $this->rateLoan $rateLoan;
  231.         return $this;
  232.     }
  233.     public function getAgencyFees(): ?bool
  234.     {
  235.         return $this->agencyFees;
  236.     }
  237.     public function setAgencyFees(bool $agencyFees): self
  238.     {
  239.         $this->agencyFees $agencyFees;
  240.         return $this;
  241.     }
  242.     public function getAgencyFeesAmount(): ?string
  243.     {
  244.         return $this->agencyFeesAmount;
  245.     }
  246.     public function setAgencyFeesAmount(string $agencyFeesAmount): self
  247.     {
  248.         $this->agencyFeesAmount $agencyFeesAmount;
  249.         return $this;
  250.     }
  251.     public function getNotaryFees(): ?bool
  252.     {
  253.         return $this->notaryFees;
  254.     }
  255.     public function setNotaryFees(bool $notaryFees): self
  256.     {
  257.         $this->notaryFees $notaryFees;
  258.         return $this;
  259.     }
  260.     public function getNotaryFeesAmount(): ?string
  261.     {
  262.         return $this->notaryFeesAmount;
  263.     }
  264.     public function setNotaryFeesAmount(string $notaryFeesAmount): self
  265.     {
  266.         $this->notaryFeesAmount $notaryFeesAmount;
  267.         return $this;
  268.     }
  269.     public function getWork(): ?bool
  270.     {
  271.         return $this->work;
  272.     }
  273.     public function setWork(bool $work): self
  274.     {
  275.         $this->work $work;
  276.         return $this;
  277.     }
  278.     public function getAmountsWork(): ?string
  279.     {
  280.         return $this->amountsWork;
  281.     }
  282.     public function setAmountsWork(?string $amountsWork): self
  283.     {
  284.         $this->amountsWork $amountsWork;
  285.         return $this;
  286.     }
  287.     public function getAccountingFirm(): ?AccountingFirm
  288.     {
  289.         return $this->accountingFirm;
  290.     }
  291.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  292.     {
  293.         $this->accountingFirm $accountingFirm;
  294.         return $this;
  295.     }
  296.     public function getPaymentMethod(): ?string
  297.     {
  298.         return $this->paymentMethod;
  299.     }
  300.     public function setPaymentMethod(string $paymentMethod): self
  301.     {
  302.         $this->paymentMethod $paymentMethod;
  303.         return $this;
  304.     }
  305.     /**
  306.      * @return Collection<int, ContactInvestissementImmoProperty>
  307.      */
  308.     public function getProperties(): Collection
  309.     {
  310.         return $this->properties;
  311.     }
  312.     public function addProperty(ContactInvestissementImmoProperty $property): self
  313.     {
  314.         if (!$this->properties->contains($property)) {
  315.             $this->properties[] = $property;
  316.             $property->setContactInvestissementImmo($this);
  317.         }
  318.         return $this;
  319.     }
  320.     public function removeProperty(ContactInvestissementImmoProperty $property): self
  321.     {
  322.         if ($this->properties->removeElement($property)) {
  323.             // set the owning side to null (unless already changed)
  324.             if ($property->getContactInvestissementImmo() === $this) {
  325.                 $property->setContactInvestissementImmo(null);
  326.             }
  327.         }
  328.         return $this;
  329.     }
  330.     public function getNumberPartTax(): ?string
  331.     {
  332.         return $this->numberPartTax;
  333.     }
  334.     public function setNumberPartTax(string $numberPartTax): self
  335.     {
  336.         $this->numberPartTax $numberPartTax;
  337.         return $this;
  338.     }
  339.     public function getTaxReferanceIncome(): ?string
  340.     {
  341.         return $this->taxReferanceIncome;
  342.     }
  343.     public function setTaxReferanceIncome(string $taxReferanceIncome): self
  344.     {
  345.         $this->taxReferanceIncome $taxReferanceIncome;
  346.         return $this;
  347.     }
  348.     public function getMessageFree(): ?string
  349.     {
  350.         return $this->messageFree;
  351.     }
  352.     public function setMessageFree(string $messageFree): self
  353.     {
  354.         $this->messageFree $messageFree;
  355.         return $this;
  356.     }
  357.     public function getZipCode(): ?string
  358.     {
  359.         return $this->zipCode;
  360.     }
  361.     public function setZipCode(string $zipCode): self
  362.     {
  363.         $this->zipCode $zipCode;
  364.         return $this;
  365.     }
  366.     public function getCity(): ?string
  367.     {
  368.         return $this->city;
  369.     }
  370.     public function setCity(string $city): self
  371.     {
  372.         $this->city $city;
  373.         return $this;
  374.     }
  375.     public function getCreatedAt(): ?DateTimeImmutable
  376.     {
  377.         return $this->createdAt;
  378.     }
  379.     public function setCreatedAt(DateTimeImmutable $createdAt): self
  380.     {
  381.         $this->createdAt $createdAt;
  382.         return $this;
  383.     }
  384.     public function getReference(): ?string
  385.     {
  386.         return $this->reference;
  387.     }
  388.     public function setReference(?string $reference): self
  389.     {
  390.         $this->reference $reference;
  391.         return $this;
  392.     }
  393.     public function getStatus(): ?string
  394.     {
  395.         return $this->status;
  396.     }
  397.     public function setStatus(?string $status): self
  398.     {
  399.         $this->status $status;
  400.         return $this;
  401.     }
  402.     public function getPdfName(): ?string
  403.     {
  404.         return $this->pdfName;
  405.     }
  406.     public function setPdfName(?string $pdfName): self
  407.     {
  408.         $this->pdfName $pdfName;
  409.         $extension pathinfo($pdfNamePATHINFO_EXTENSION);
  410.         if ($extension != null) {
  411.             $this->setPdfExtension($extension);
  412.         }
  413.         return $this;
  414.     }
  415.     public function getPdfSize(): ?int
  416.     {
  417.         return $this->pdfSize;
  418.     }
  419.     public function setPdfSize(?int $pdfSize): self
  420.     {
  421.         $this->pdfSize $pdfSize;
  422.         return $this;
  423.     }
  424.     public function getPdfUpdatedAt(): ?\DateTimeInterface
  425.     {
  426.         return $this->pdfUpdatedAt;
  427.     }
  428.     public function setPdfUpdatedAt(?\DateTimeInterface $pdfUpdatedAt): self
  429.     {
  430.         $this->pdfUpdatedAt $pdfUpdatedAt;
  431.         return $this;
  432.     }
  433.     public function getPdfFile(): ?File
  434.     {
  435.         return $this->pdfFile;
  436.     }
  437.     public function setPdfFile(?File $pdfFile): self
  438.     {
  439.         $this->pdfFile $pdfFile;
  440.         if (null !== $this->pdfFile) {
  441.             $this->pdfUpdatedAt = new \DateTimeImmutable();
  442.         }
  443.         return $this;
  444.     }
  445. }