src/Entity/ContactCreationSociete.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactCreationSocieteRepository;
  4. use DateTimeImmutable;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Component\HttpFoundation\File\File;
  9. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  10. #[ORM\Entity(repositoryClassContactCreationSocieteRepository::class)]
  11. /**
  12.  * @Vich\Uploadable
  13.  */
  14. class ContactCreationSociete
  15. {
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue]
  18.     #[ORM\Column(type'integer')]
  19.     private $id;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $category;
  22.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'contactCreationSocietes')]
  23.     private $cabinet;
  24.     #[ORM\Column(type'string'length20)]
  25.     private ?string $paymentMethod null;
  26.     #[ORM\Column(type'datetime_immutable')]
  27.     private $createdAt;
  28.     // Entreprise
  29.     #[ORM\Column(type'string'length255)]
  30.     private $businessStructure;
  31.     #[ORM\Column(type'string'length255)]
  32.     private $societyName;
  33.     #[ORM\Column(type'string'length255)]
  34.     private $societyAddress;
  35.     #[ORM\Column(type'string'length255)]
  36.     private $societyCity;
  37.     #[ORM\Column(type'string'length255)]
  38.     private $societyZipCode;
  39.     #[ORM\Column(type'string'length255)]
  40.     private $taxRegime;
  41.     #[ORM\Column(type'string'length255)]
  42.     private $activity;
  43.     #[ORM\Column(type'datetime_immutable')]
  44.     private $startActivityAt;
  45.     #[ORM\Column(type'datetime_immutable')]
  46.     private $fiscalYearEndAt;
  47.     #[ORM\Column(type'string'length255)]
  48.     private $companyCapital;
  49.     #[ORM\Column(type'boolean')]
  50.     private $tva;
  51.     // Chiffres
  52.     #[ORM\Column(type'string'length255nullabletrue)]
  53.     private $investmentAmount;
  54.     #[ORM\Column(type'string'length255nullabletrue)]
  55.     private $personalContribution;
  56.     #[ORM\Column(type'string'length255nullabletrue)]
  57.     private $loanRequested;
  58.     #[ORM\Column(type'string'length255nullabletrue)]
  59.     private $loanRateRequested;
  60.     #[ORM\Column(type'string'length255)]
  61.     private $ca_estimated;
  62.     #[ORM\Column(type'string'length255nullabletrue)]
  63.     private $marginRate;
  64.     // Charges
  65.     #[ORM\Column(type'json'nullabletrue)]
  66.     private $suppliesConsumable = [];
  67.     #[ORM\Column(type'json'nullabletrue)]
  68.     private $externalServices = [];
  69.     #[ORM\OneToMany(mappedBy'contactCreationSociete'targetEntityContactCreationSocieteCharge::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  70.     private $contactCreationSocieteCharges;
  71.     // Collaborateur
  72.     #[ORM\OneToMany(mappedBy'contactCreationSociete'targetEntityContactCreationSocieteSalaryEmployee::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  73.     private $contactCreationSocieteSalaryEmployees;
  74.     #[ORM\Column(type'boolean'nullabletrue)]
  75.     private $employees;
  76.     #[ORM\Column(type'integer'nullabletrue)]
  77.     private $employeesNumber;
  78.     #[ORM\Column(type'string'length255nullabletrue)]
  79.     private $netDirectorSalary;
  80.     #[ORM\Column(type'boolean'nullabletrue)]
  81.     private $unemploymentRights;
  82.     #[ORM\Column(type'integer'nullabletrue)]
  83.     private $apprenticesNumber;
  84.     // Projets
  85.     #[ORM\Column(type'text'nullabletrue)]
  86.     private $additionalInformations;
  87.     #[ORM\Column(type'string'length255)]
  88.     private $name;
  89.     #[ORM\Column(type'string'length255)]
  90.     private $firstname;
  91.     #[ORM\Column(type'string'length50)]
  92.     private $phone;
  93.     #[ORM\Column(type'string'length255)]
  94.     private $email;
  95.     #[ORM\Column(type'string'length255)]
  96.     private $adress;
  97.     #[ORM\Column(type'string'length255nullabletrue)]
  98.     private $reference;
  99.     #[ORM\Column(type'string'length255nullabletrue)]
  100.     private $status;
  101.     #[ORM\Column(type'string'nullabletrue)]
  102.     private $pdfName;
  103.     #[ORM\Column(type'integer'nullabletrue)]
  104.     private $pdfSize;
  105.     #[ORM\Column(type'datetime'nullabletrue)]
  106.     private $pdfUpdatedAt;
  107.     /**
  108.      * @Vich\UploadableField(mapping="contactCreationSociete", fileNameProperty="pdfName", size="pdfSize")
  109.      * @var File|null
  110.      */
  111.     private $pdfFile;
  112.     public function __construct()
  113.     {
  114.         $this->contactCreationSocieteCharges = new ArrayCollection();
  115.         $this->contactCreationSocieteSalaryEmployees = new ArrayCollection();
  116.     }
  117.     public function getId(): ?int
  118.     {
  119.         return $this->id;
  120.     }
  121.     public function getCategory(): ?string
  122.     {
  123.         return $this->category;
  124.     }
  125.     public function setCategory(string $category): self
  126.     {
  127.         $this->category $category;
  128.         return $this;
  129.     }
  130.     public function getName(): ?string
  131.     {
  132.         return $this->name;
  133.     }
  134.     public function setName(string $name): self
  135.     {
  136.         $this->name $name;
  137.         return $this;
  138.     }
  139.     public function getFirstname(): ?string
  140.     {
  141.         return $this->firstname;
  142.     }
  143.     public function setFirstname(string $firstname): self
  144.     {
  145.         $this->firstname $firstname;
  146.         return $this;
  147.     }
  148.     public function getPhone(): ?string
  149.     {
  150.         return $this->phone;
  151.     }
  152.     public function setPhone(string $phone): self
  153.     {
  154.         $this->phone $phone;
  155.         return $this;
  156.     }
  157.     public function getEmail(): ?string
  158.     {
  159.         return $this->email;
  160.     }
  161.     public function setEmail(string $email): self
  162.     {
  163.         $this->email $email;
  164.         return $this;
  165.     }
  166.     public function getAdress(): ?string
  167.     {
  168.         return $this->adress;
  169.     }
  170.     public function setAdress(string $adress): self
  171.     {
  172.         $this->adress $adress;
  173.         return $this;
  174.     }
  175.     public function getBusinessStructure(): ?string
  176.     {
  177.         return $this->businessStructure;
  178.     }
  179.     public function setBusinessStructure(string $businessStructure): self
  180.     {
  181.         $this->businessStructure $businessStructure;
  182.         return $this;
  183.     }
  184.     public function getSocietyName(): ?string
  185.     {
  186.         return $this->societyName;
  187.     }
  188.     public function setSocietyName(string $societyName): self
  189.     {
  190.         $this->societyName $societyName;
  191.         return $this;
  192.     }
  193.     public function getActivity(): ?string
  194.     {
  195.         return $this->activity;
  196.     }
  197.     public function setActivity(string $activity): self
  198.     {
  199.         $this->activity $activity;
  200.         return $this;
  201.     }
  202.     public function getSocietyAddress(): ?string
  203.     {
  204.         return $this->societyAddress;
  205.     }
  206.     public function setSocietyAddress(string $societyAddress): self
  207.     {
  208.         $this->societyAddress $societyAddress;
  209.         return $this;
  210.     }
  211.     public function getSocietyCity(): ?string
  212.     {
  213.         return $this->societyCity;
  214.     }
  215.     public function setSocietyCity(string $societyCity): self
  216.     {
  217.         $this->societyCity $societyCity;
  218.         return $this;
  219.     }
  220.     public function getSocietyZipCode(): ?string
  221.     {
  222.         return $this->societyZipCode;
  223.     }
  224.     public function setSocietyZipCode(string $societyZipCode): self
  225.     {
  226.         $this->societyZipCode $societyZipCode;
  227.         return $this;
  228.     }
  229.     public function getStartActivityAt(): ?DateTimeImmutable
  230.     {
  231.         return $this->startActivityAt;
  232.     }
  233.     public function setStartActivityAt(DateTimeImmutable $startActivityAt): self
  234.     {
  235.         $this->startActivityAt $startActivityAt;
  236.         return $this;
  237.     }
  238.     public function getFiscalYearEndAt(): ?DateTimeImmutable
  239.     {
  240.         return $this->fiscalYearEndAt;
  241.     }
  242.     public function setFiscalYearEndAt(DateTimeImmutable $fiscalYearEndAt): self
  243.     {
  244.         $this->fiscalYearEndAt $fiscalYearEndAt;
  245.         return $this;
  246.     }
  247.     public function getTaxRegime(): ?string
  248.     {
  249.         return $this->taxRegime;
  250.     }
  251.     public function setTaxRegime(string $taxRegime): self
  252.     {
  253.         $this->taxRegime $taxRegime;
  254.         return $this;
  255.     }
  256.     public function isTva(): ?bool
  257.     {
  258.         return $this->tva;
  259.     }
  260.     public function setTva(bool $tva): self
  261.     {
  262.         $this->tva $tva;
  263.         return $this;
  264.     }
  265.     public function getCompanyCapital(): ?string
  266.     {
  267.         return $this->companyCapital;
  268.     }
  269.     public function setCompanyCapital(string $companyCapital): self
  270.     {
  271.         $this->companyCapital $companyCapital;
  272.         return $this;
  273.     }
  274.     public function getInvestmentAmount(): ?string
  275.     {
  276.         return $this->investmentAmount;
  277.     }
  278.     public function setInvestmentAmount(?string $investmentAmount): self
  279.     {
  280.         $this->investmentAmount $investmentAmount;
  281.         return $this;
  282.     }
  283.     public function getPersonalContribution(): ?string
  284.     {
  285.         return $this->personalContribution;
  286.     }
  287.     public function setPersonalContribution(?string $personalContribution): self
  288.     {
  289.         $this->personalContribution $personalContribution;
  290.         return $this;
  291.     }
  292.     public function getLoanRequested(): ?string
  293.     {
  294.         return $this->loanRequested;
  295.     }
  296.     public function setLoanRequested(?string $loanRequested): self
  297.     {
  298.         $this->loanRequested $loanRequested;
  299.         return $this;
  300.     }
  301.     public function getLoanRateRequested(): ?string
  302.     {
  303.         return $this->loanRateRequested;
  304.     }
  305.     public function setLoanRateRequested(?string $loanRateRequested): self
  306.     {
  307.         $this->loanRateRequested $loanRateRequested;
  308.         return $this;
  309.     }
  310.     public function getCaEstimated(): ?string
  311.     {
  312.         return $this->ca_estimated;
  313.     }
  314.     public function setCaEstimated(string $ca_estimated): self
  315.     {
  316.         $this->ca_estimated $ca_estimated;
  317.         return $this;
  318.     }
  319.     public function getMarginRate(): ?string
  320.     {
  321.         return $this->marginRate;
  322.     }
  323.     public function setMarginRate(?string $marginRate): self
  324.     {
  325.         $this->marginRate $marginRate;
  326.         return $this;
  327.     }
  328.     public function getSuppliesConsumable(): ?array
  329.     {
  330.         return $this->suppliesConsumable;
  331.     }
  332.     public function setSuppliesConsumable(?array $suppliesConsumable): self
  333.     {
  334.         $this->suppliesConsumable $suppliesConsumable;
  335.         return $this;
  336.     }
  337.     public function getExternalServices(): ?array
  338.     {
  339.         return $this->externalServices;
  340.     }
  341.     public function setExternalServices(?array $externalServices): self
  342.     {
  343.         $this->externalServices $externalServices;
  344.         return $this;
  345.     }
  346.     public function isEmployees(): ?bool
  347.     {
  348.         return $this->employees;
  349.     }
  350.     public function setEmployees(?bool $employees): self
  351.     {
  352.         $this->employees $employees;
  353.         return $this;
  354.     }
  355.     public function getEmployeesNumber(): ?int
  356.     {
  357.         return $this->employeesNumber;
  358.     }
  359.     public function setEmployeesNumber(?int $employeesNumber): self
  360.     {
  361.         $this->employeesNumber $employeesNumber;
  362.         return $this;
  363.     }
  364.     public function getNetDirectorSalary(): ?string
  365.     {
  366.         return $this->netDirectorSalary;
  367.     }
  368.     public function setNetDirectorSalary(?string $netDirectorSalary): self
  369.     {
  370.         $this->netDirectorSalary $netDirectorSalary;
  371.         return $this;
  372.     }
  373.     public function isUnemploymentRights(): ?bool
  374.     {
  375.         return $this->unemploymentRights;
  376.     }
  377.     public function setUnemploymentRights(?bool $unemploymentRights): self
  378.     {
  379.         $this->unemploymentRights $unemploymentRights;
  380.         return $this;
  381.     }
  382.     public function getAdditionalInformations(): ?string
  383.     {
  384.         return $this->additionalInformations;
  385.     }
  386.     public function setAdditionalInformations(?string $additionalInformations): self
  387.     {
  388.         $this->additionalInformations $additionalInformations;
  389.         return $this;
  390.     }
  391.     public function getCabinet(): ?AccountingFirm
  392.     {
  393.         return $this->cabinet;
  394.     }
  395.     public function setCabinet(?AccountingFirm $cabinet): self
  396.     {
  397.         $this->cabinet $cabinet;
  398.         return $this;
  399.     }
  400.     public function getPaymentMethod(): ?string
  401.     {
  402.         return $this->paymentMethod;
  403.     }
  404.     public function setPaymentMethod(string $paymentMethod): self
  405.     {
  406.         $this->paymentMethod $paymentMethod;
  407.         return $this;
  408.     }
  409.     /**
  410.      * @return Collection<int, ContactCreationSocieteCharge>
  411.      */
  412.     public function getContactCreationSocieteCharges(): Collection
  413.     {
  414.         return $this->contactCreationSocieteCharges;
  415.     }
  416.     public function addContactCreationSocieteCharge(ContactCreationSocieteCharge $contactCreationSocieteCharge): self
  417.     {
  418.         if (!$this->contactCreationSocieteCharges->contains($contactCreationSocieteCharge)) {
  419.             $this->contactCreationSocieteCharges[] = $contactCreationSocieteCharge;
  420.             $contactCreationSocieteCharge->setContactCreationSociete($this);
  421.         }
  422.         return $this;
  423.     }
  424.     public function removeContactCreationSocieteCharge(ContactCreationSocieteCharge $contactCreationSocieteCharge): self
  425.     {
  426.         if ($this->contactCreationSocieteCharges->removeElement($contactCreationSocieteCharge)) {
  427.             // set the owning side to null (unless already changed)
  428.             if ($contactCreationSocieteCharge->getContactCreationSociete() === $this) {
  429.                 $contactCreationSocieteCharge->setContactCreationSociete(null);
  430.             }
  431.         }
  432.         return $this;
  433.     }
  434.     public function getApprenticesNumber(): ?int
  435.     {
  436.         return $this->apprenticesNumber;
  437.     }
  438.     public function setApprenticesNumber(int $apprenticesNumber): self
  439.     {
  440.         $this->apprenticesNumber $apprenticesNumber;
  441.         return $this;
  442.     }
  443.     /**
  444.      * @return Collection<int, ContactCreationSocieteSalaryEmployee>
  445.      */
  446.     public function getContactCreationSocieteSalaryEmployees(): Collection
  447.     {
  448.         return $this->contactCreationSocieteSalaryEmployees;
  449.     }
  450.     public function addContactCreationSocieteSalaryEmployee(ContactCreationSocieteSalaryEmployee $contactCreationSocieteSalaryEmployee): self
  451.     {
  452.         if (!$this->contactCreationSocieteSalaryEmployees->contains($contactCreationSocieteSalaryEmployee)) {
  453.             $this->contactCreationSocieteSalaryEmployees[] = $contactCreationSocieteSalaryEmployee;
  454.             $contactCreationSocieteSalaryEmployee->setContactCreationSociete($this);
  455.         }
  456.         return $this;
  457.     }
  458.     public function removeContactCreationSocieteSalaryEmployee(ContactCreationSocieteSalaryEmployee $contactCreationSocieteSalaryEmployee): self
  459.     {
  460.         if ($this->contactCreationSocieteSalaryEmployees->removeElement($contactCreationSocieteSalaryEmployee)) {
  461.             // set the owning side to null (unless already changed)
  462.             if ($contactCreationSocieteSalaryEmployee->getContactCreationSociete() === $this) {
  463.                 $contactCreationSocieteSalaryEmployee->setContactCreationSociete(null);
  464.             }
  465.         }
  466.         return $this;
  467.     }
  468.     public function getCreatedAt(): ?DateTimeImmutable
  469.     {
  470.         return $this->createdAt;
  471.     }
  472.     public function setCreatedAt(DateTimeImmutable $createdAt): self
  473.     {
  474.         $this->createdAt $createdAt;
  475.         return $this;
  476.     }
  477.     public function getReference(): ?string
  478.     {
  479.         return $this->reference;
  480.     }
  481.     public function setReference(?string $reference): self
  482.     {
  483.         $this->reference $reference;
  484.         return $this;
  485.     }
  486.     public function getStatus(): ?string
  487.     {
  488.         return $this->status;
  489.     }
  490.     public function setStatus(?string $status): self
  491.     {
  492.         $this->status $status;
  493.         return $this;
  494.     }
  495.     public function getPdfName(): ?string
  496.     {
  497.         return $this->pdfName;
  498.     }
  499.     public function setPdfName(?string $pdfName): self
  500.     {
  501.         $this->pdfName $pdfName;
  502.         return $this;
  503.     }
  504.     public function getPdfSize(): ?int
  505.     {
  506.         return $this->pdfSize;
  507.     }
  508.     public function setPdfSize(?int $pdfSize): self
  509.     {
  510.         $this->pdfSize $pdfSize;
  511.         return $this;
  512.     }
  513.     public function getPdfUpdatedAt(): ?\DateTimeInterface
  514.     {
  515.         return $this->pdfUpdatedAt;
  516.     }
  517.     public function setPdfUpdatedAt(?\DateTimeInterface $pdfUpdatedAt): self
  518.     {
  519.         $this->pdfUpdatedAt $pdfUpdatedAt;
  520.         return $this;
  521.     }
  522.     public function getPdfFile(): ?File
  523.     {
  524.         return $this->pdfFile;
  525.     }
  526.     public function setPdfFile(?File $pdfFile): self
  527.     {
  528.         $this->pdfFile $pdfFile;
  529.         if (null !== $this->pdfFile) {
  530.             $this->pdfUpdatedAt = new \DateTimeImmutable();
  531.         }
  532.         return $this;
  533.     }
  534. }