src/Entity/Entreprise.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EntrepriseRepository;
  4. use App\Traits\TimeStampTrait;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassEntrepriseRepository::class)]
  10. #[ORM\HasLifecycleCallbacks]
  11. class Entreprise
  12. {
  13.     use TimeStampTrait;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(length100)]
  19.     private ?string $code null;
  20.     #[ORM\Column(length100)]
  21.     private ?string $name null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $adress null;
  24.     #[ORM\Column(length100nullabletrue)]
  25.     private ?string $email null;
  26.     #[ORM\Column(length50nullabletrue)]
  27.     private ?string $phone null;
  28.     #[ORM\Column(length100nullabletrue)]
  29.     private ?string $pseudo null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $description null;
  32.     #[ORM\Column(length50nullabletrue)]
  33.     private ?string $rccm null;
  34.     #[ORM\Column(length100nullabletrue)]
  35.     private ?string $icon null;
  36.     #[ORM\Column(nullabletrue)]
  37.     private ?bool $status null;
  38.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityUser::class)]
  39.     private Collection $users;
  40.     #[ORM\OneToMany(mappedBy'marchand'targetEntityRole::class)]
  41.     private Collection $roles;
  42.     #[ORM\OneToMany(mappedBy'marchand'targetEntityCategoryResidence::class)]
  43.     private Collection $categoryResidences;
  44.     #[ORM\OneToMany(mappedBy'marchand'targetEntityResidenceImmeuble::class)]
  45.     private Collection $residenceImmeubles;
  46.     #[ORM\OneToMany(mappedBy'marchand'targetEntityPaymentGenerator::class)]
  47.     private Collection $paymentGenerators;
  48.     #[ORM\OneToMany(mappedBy'marchand'targetEntityPrestataire::class)]
  49.     private Collection $prestataires;
  50.     #[ORM\OneToMany(mappedBy'marchand'targetEntityIncident::class)]
  51.     private Collection $incidents;
  52.     #[ORM\OneToMany(mappedBy'marchand'targetEntityTemplate::class)]
  53.     private Collection $templates;
  54.     #[ORM\Column(nullabletrue)]
  55.     private ?bool $smsservice null;
  56.     #[ORM\Column(nullabletrue)]
  57.     private ?bool $invoiceservice null;
  58.     #[ORM\OneToMany(mappedBy'marchand'targetEntityPaymentGaranty::class)]
  59.     private Collection $paymentGaranties;
  60.     #[ORM\OneToMany(mappedBy'marchand'targetEntityIncidentUpdate::class)]
  61.     private Collection $incidentUpdates;
  62.     #[ORM\OneToMany(mappedBy'marchand'targetEntityService::class)]
  63.     private Collection $services;
  64.     #[ORM\ManyToOne(inversedBy'entreprises')]
  65.     private ?Admin $admin null;
  66.     #[ORM\Column(length50nullabletrue)]
  67.     private ?string $idnat null;
  68.     #[ORM\Column(length50nullabletrue)]
  69.     private ?string $numeroimpot null;
  70.     #[ORM\ManyToOne(inversedBy'entreprises')]
  71.     private ?Country $country null;
  72.     #[ORM\Column(length50nullabletrue)]
  73.     private ?string $city null;
  74.     #[ORM\Column(length50nullabletrue)]
  75.     private ?string $province null;
  76.     #[ORM\Column(nullabletrue)]
  77.     private ?int $nbrebiensimmobiliers null;
  78.     #[ORM\OneToMany(mappedBy'entreprise'targetEntitySubscription::class)]
  79.     private Collection $subscriptions;
  80.     #[ORM\Column(nullabletrue)]
  81.     private ?bool $freeTrail null;
  82.     #[ORM\ManyToOne(inversedBy'entreprises')]
  83.     private ?Package $package null;
  84.     #[ORM\Column(length25nullabletrue)]
  85.     private ?string $period null;
  86.     #[ORM\Column]
  87.     private ?bool $recallpaymentnotification null;
  88.     #[ORM\Column(length255nullabletrue)]
  89.     private ?string $smartPaykey null;
  90.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityAnnouncement::class)]
  91.     private Collection $announcements;
  92.     #[ORM\OneToMany(mappedBy'marchand'targetEntityCashJournal::class)]
  93.     private Collection $cashJournals;
  94.     #[ORM\OneToMany(mappedBy'marchand'targetEntityCashJournalEntry::class)]
  95.     private Collection $cashJournalEntries;
  96.     #[ORM\OneToMany(mappedBy'marchand'targetEntityCharge::class)]
  97.     private Collection $charges;
  98.     #[ORM\OneToMany(mappedBy'marchand'targetEntityChargeAllocation::class)]
  99.     private Collection $chargeAllocations;
  100.     #[ORM\Column(nullabletrue)]
  101.     private ?bool $makeJournal null;
  102.     #[ORM\OneToMany(mappedBy'marchand'targetEntityLog::class)]
  103.     private Collection $logs;
  104.     #[ORM\OneToMany(mappedBy'marchand'targetEntityReservation::class)]
  105.     private Collection $reservations;
  106.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityUserEntreprise::class)]
  107.     private Collection $userEntreprises;
  108.     #[ORM\ManyToOne(inversedBy'entreprises')]
  109.     private ?User $owner null;
  110.     #[ORM\Column(typeTypes::DECIMALprecision10scale2nullabletrue)]
  111.     private ?string $defaultFxRate null;
  112.     #[ORM\ManyToOne(inversedBy'entreprises')]
  113.     private ?Currency $currency null;
  114.     #[ORM\Column(nullabletrue)]
  115.     private ?bool $isDefaultFxRateApply null;
  116.     #[ORM\Column(typeTypes::DECIMALprecision10scale2nullabletrue)]
  117.     private ?string $tva null;
  118.     #[ORM\Column(length20nullabletrue)]
  119.     private ?string $dgiNif null;
  120.     #[ORM\Column(length64nullabletrue)]
  121.     private ?string $dgiIsf null;
  122.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  123.     private ?string $dgiToken null;
  124.     #[ORM\Column(length10nullabletrue)]
  125.     private ?string $dgiEnv null;
  126.     #[ORM\Column(length1nullabletrue)]
  127.     private ?string $dgiDefaultTaxGroup null;
  128.     #[ORM\Column(length50nullabletrue)]
  129.     private ?string $dgiDefaultItemType null;
  130.     #[ORM\Column(nullabletrue)]
  131.     private ?bool $dgiServiceEnabled null;
  132.     #[ORM\Column(typeTypes::DECIMALprecision5scale2nullabletrue)]
  133.     private ?string $dgiTaxRate null;
  134.     public function __construct()
  135.     {
  136.         $this->users = new ArrayCollection();
  137.         $this->roles = new ArrayCollection();
  138.         $this->categoryResidences = new ArrayCollection();
  139.         $this->residenceImmeubles = new ArrayCollection();
  140.         $this->paymentGenerators = new ArrayCollection();
  141.         $this->prestataires = new ArrayCollection();
  142.         $this->incidents = new ArrayCollection();
  143.         $this->templates = new ArrayCollection();
  144.         $this->paymentGaranties = new ArrayCollection();
  145.         $this->incidentUpdates = new ArrayCollection();
  146.         $this->services = new ArrayCollection();
  147.         $this->subscriptions = new ArrayCollection();
  148.         $this->announcements = new ArrayCollection();
  149.         $this->cashJournals = new ArrayCollection();
  150.         $this->cashJournalEntries = new ArrayCollection();
  151.         $this->charges = new ArrayCollection();
  152.         $this->chargeAllocations = new ArrayCollection();
  153.         $this->logs = new ArrayCollection();
  154.         $this->reservations = new ArrayCollection();
  155.         $this->userEntreprises = new ArrayCollection();
  156.     }
  157.     public function getId(): ?int
  158.     {
  159.         return $this->id;
  160.     }
  161.     public function getCode(): ?string
  162.     {
  163.         return $this->code;
  164.     }
  165.     public function setCode(string $code): static
  166.     {
  167.         $this->code $code;
  168.         return $this;
  169.     }
  170.     public function getName(): ?string
  171.     {
  172.         return $this->name;
  173.     }
  174.     public function setName(string $name): static
  175.     {
  176.         $this->name $name;
  177.         return $this;
  178.     }
  179.     public function getAdress(): ?string
  180.     {
  181.         return $this->adress;
  182.     }
  183.     public function setAdress(?string $adress): static
  184.     {
  185.         $this->adress $adress;
  186.         return $this;
  187.     }
  188.     public function getEmail(): ?string
  189.     {
  190.         return $this->email;
  191.     }
  192.     public function setEmail(?string $email): static
  193.     {
  194.         $this->email $email;
  195.         return $this;
  196.     }
  197.     public function getPhone(): ?string
  198.     {
  199.         return $this->phone;
  200.     }
  201.     public function setPhone(?string $phone): static
  202.     {
  203.         $this->phone $phone;
  204.         return $this;
  205.     }
  206.     public function getPseudo(): ?string
  207.     {
  208.         return $this->pseudo;
  209.     }
  210.     public function setPseudo(?string $pseudo): static
  211.     {
  212.         $this->pseudo $pseudo;
  213.         return $this;
  214.     }
  215.     public function getDescription(): ?string
  216.     {
  217.         return $this->description;
  218.     }
  219.     public function setDescription(?string $description): static
  220.     {
  221.         $this->description $description;
  222.         return $this;
  223.     }
  224.     public function getRccm(): ?string
  225.     {
  226.         return $this->rccm;
  227.     }
  228.     public function setRccm(?string $rccm): static
  229.     {
  230.         $this->rccm $rccm;
  231.         return $this;
  232.     }
  233.     public function getIcon(): ?string
  234.     {
  235.         return $this->icon;
  236.     }
  237.     public function setIcon(?string $icon): static
  238.     {
  239.         $this->icon $icon;
  240.         return $this;
  241.     }
  242.     public function isStatus(): ?bool
  243.     {
  244.         return $this->status;
  245.     }
  246.     public function setStatus(?bool $status): static
  247.     {
  248.         $this->status $status;
  249.         return $this;
  250.     }
  251.     public function __toString(): string
  252.     {
  253.         return $this->name;
  254.     }
  255.     /**
  256.      * @return Collection<int, User>
  257.      */
  258.     public function getUsers(): Collection
  259.     {
  260.         return $this->users;
  261.     }
  262.     public function addUser(User $user): static
  263.     {
  264.         if (!$this->users->contains($user)) {
  265.             $this->users->add($user);
  266.             $user->setEntreprise($this);
  267.         }
  268.         return $this;
  269.     }
  270.     public function removeUser(User $user): static
  271.     {
  272.         if ($this->users->removeElement($user)) {
  273.             // set the owning side to null (unless already changed)
  274.             if ($user->getEntreprise() === $this) {
  275.                 $user->setEntreprise(null);
  276.             }
  277.         }
  278.         return $this;
  279.     }
  280.     /**
  281.      * @return Collection<int, Role>
  282.      */
  283.     public function getRoles(): Collection
  284.     {
  285.         return $this->roles;
  286.     }
  287.     public function addRole(Role $role): static
  288.     {
  289.         if (!$this->roles->contains($role)) {
  290.             $this->roles->add($role);
  291.             $role->setMarchand($this);
  292.         }
  293.         return $this;
  294.     }
  295.     public function removeRole(Role $role): static
  296.     {
  297.         if ($this->roles->removeElement($role)) {
  298.             // set the owning side to null (unless already changed)
  299.             if ($role->getMarchand() === $this) {
  300.                 $role->setMarchand(null);
  301.             }
  302.         }
  303.         return $this;
  304.     }
  305.     /**
  306.      * @return Collection<int, CategoryResidence>
  307.      */
  308.     public function getCategoryResidences(): Collection
  309.     {
  310.         return $this->categoryResidences;
  311.     }
  312.     public function addCategoryResidence(CategoryResidence $categoryResidence): static
  313.     {
  314.         if (!$this->categoryResidences->contains($categoryResidence)) {
  315.             $this->categoryResidences->add($categoryResidence);
  316.             $categoryResidence->setMarchand($this);
  317.         }
  318.         return $this;
  319.     }
  320.     public function removeCategoryResidence(CategoryResidence $categoryResidence): static
  321.     {
  322.         if ($this->categoryResidences->removeElement($categoryResidence)) {
  323.             // set the owning side to null (unless already changed)
  324.             if ($categoryResidence->getMarchand() === $this) {
  325.                 $categoryResidence->setMarchand(null);
  326.             }
  327.         }
  328.         return $this;
  329.     }
  330.     /**
  331.      * @return Collection<int, ResidenceImmeuble>
  332.      */
  333.     public function getResidenceImmeubles(): Collection
  334.     {
  335.         return $this->residenceImmeubles;
  336.     }
  337.     public function addResidenceImmeuble(ResidenceImmeuble $residenceImmeuble): static
  338.     {
  339.         if (!$this->residenceImmeubles->contains($residenceImmeuble)) {
  340.             $this->residenceImmeubles->add($residenceImmeuble);
  341.             $residenceImmeuble->setMarchand($this);
  342.         }
  343.         return $this;
  344.     }
  345.     public function removeResidenceImmeuble(ResidenceImmeuble $residenceImmeuble): static
  346.     {
  347.         if ($this->residenceImmeubles->removeElement($residenceImmeuble)) {
  348.             // set the owning side to null (unless already changed)
  349.             if ($residenceImmeuble->getMarchand() === $this) {
  350.                 $residenceImmeuble->setMarchand(null);
  351.             }
  352.         }
  353.         return $this;
  354.     }
  355.     /**
  356.      * @return Collection<int, PaymentGenerator>
  357.      */
  358.     public function getPaymentGenerators(): Collection
  359.     {
  360.         return $this->paymentGenerators;
  361.     }
  362.     public function addPaymentGenerator(PaymentGenerator $paymentGenerator): static
  363.     {
  364.         if (!$this->paymentGenerators->contains($paymentGenerator)) {
  365.             $this->paymentGenerators->add($paymentGenerator);
  366.             $paymentGenerator->setMarchand($this);
  367.         }
  368.         return $this;
  369.     }
  370.     public function removePaymentGenerator(PaymentGenerator $paymentGenerator): static
  371.     {
  372.         if ($this->paymentGenerators->removeElement($paymentGenerator)) {
  373.             // set the owning side to null (unless already changed)
  374.             if ($paymentGenerator->getMarchand() === $this) {
  375.                 $paymentGenerator->setMarchand(null);
  376.             }
  377.         }
  378.         return $this;
  379.     }
  380.     /**
  381.      * @return Collection<int, Prestataire>
  382.      */
  383.     public function getPrestataires(): Collection
  384.     {
  385.         return $this->prestataires;
  386.     }
  387.     public function addPrestataire(Prestataire $prestataire): static
  388.     {
  389.         if (!$this->prestataires->contains($prestataire)) {
  390.             $this->prestataires->add($prestataire);
  391.             $prestataire->setMarchand($this);
  392.         }
  393.         return $this;
  394.     }
  395.     public function removePrestataire(Prestataire $prestataire): static
  396.     {
  397.         if ($this->prestataires->removeElement($prestataire)) {
  398.             // set the owning side to null (unless already changed)
  399.             if ($prestataire->getMarchand() === $this) {
  400.                 $prestataire->setMarchand(null);
  401.             }
  402.         }
  403.         return $this;
  404.     }
  405.     /**
  406.      * @return Collection<int, Incident>
  407.      */
  408.     public function getIncidents(): Collection
  409.     {
  410.         return $this->incidents;
  411.     }
  412.     public function addIncident(Incident $incident): static
  413.     {
  414.         if (!$this->incidents->contains($incident)) {
  415.             $this->incidents->add($incident);
  416.             $incident->setMarchand($this);
  417.         }
  418.         return $this;
  419.     }
  420.     public function removeIncident(Incident $incident): static
  421.     {
  422.         if ($this->incidents->removeElement($incident)) {
  423.             // set the owning side to null (unless already changed)
  424.             if ($incident->getMarchand() === $this) {
  425.                 $incident->setMarchand(null);
  426.             }
  427.         }
  428.         return $this;
  429.     }
  430.     /**
  431.      * @return Collection<int, Template>
  432.      */
  433.     public function getTemplates(): Collection
  434.     {
  435.         return $this->templates;
  436.     }
  437.     public function addTemplate(Template $template): static
  438.     {
  439.         if (!$this->templates->contains($template)) {
  440.             $this->templates->add($template);
  441.             $template->setMarchand($this);
  442.         }
  443.         return $this;
  444.     }
  445.     public function removeTemplate(Template $template): static
  446.     {
  447.         if ($this->templates->removeElement($template)) {
  448.             // set the owning side to null (unless already changed)
  449.             if ($template->getMarchand() === $this) {
  450.                 $template->setMarchand(null);
  451.             }
  452.         }
  453.         return $this;
  454.     }
  455.     public function isSmsservice(): ?bool
  456.     {
  457.         return $this->smsservice;
  458.     }
  459.     public function setSmsservice(?bool $smsservice): static
  460.     {
  461.         $this->smsservice $smsservice;
  462.         return $this;
  463.     }
  464.     public function isInvoiceservice(): ?bool
  465.     {
  466.         return $this->invoiceservice;
  467.     }
  468.     public function setInvoiceservice(?bool $invoiceservice): static
  469.     {
  470.         $this->invoiceservice $invoiceservice;
  471.         return $this;
  472.     }
  473.     /**
  474.      * @return Collection<int, PaymentGaranty>
  475.      */
  476.     public function getPaymentGaranties(): Collection
  477.     {
  478.         return $this->paymentGaranties;
  479.     }
  480.     public function addPaymentGaranty(PaymentGaranty $paymentGaranty): static
  481.     {
  482.         if (!$this->paymentGaranties->contains($paymentGaranty)) {
  483.             $this->paymentGaranties->add($paymentGaranty);
  484.             $paymentGaranty->setMarchand($this);
  485.         }
  486.         return $this;
  487.     }
  488.     public function removePaymentGaranty(PaymentGaranty $paymentGaranty): static
  489.     {
  490.         if ($this->paymentGaranties->removeElement($paymentGaranty)) {
  491.             // set the owning side to null (unless already changed)
  492.             if ($paymentGaranty->getMarchand() === $this) {
  493.                 $paymentGaranty->setMarchand(null);
  494.             }
  495.         }
  496.         return $this;
  497.     }
  498.     /**
  499.      * @return Collection<int, IncidentUpdate>
  500.      */
  501.     public function getIncidentUpdates(): Collection
  502.     {
  503.         return $this->incidentUpdates;
  504.     }
  505.     public function addIncidentUpdate(IncidentUpdate $incidentUpdate): static
  506.     {
  507.         if (!$this->incidentUpdates->contains($incidentUpdate)) {
  508.             $this->incidentUpdates->add($incidentUpdate);
  509.             $incidentUpdate->setMarchand($this);
  510.         }
  511.         return $this;
  512.     }
  513.     public function removeIncidentUpdate(IncidentUpdate $incidentUpdate): static
  514.     {
  515.         if ($this->incidentUpdates->removeElement($incidentUpdate)) {
  516.             // set the owning side to null (unless already changed)
  517.             if ($incidentUpdate->getMarchand() === $this) {
  518.                 $incidentUpdate->setMarchand(null);
  519.             }
  520.         }
  521.         return $this;
  522.     }
  523.     /**
  524.      * @return Collection<int, Service>
  525.      */
  526.     public function getServices(): Collection
  527.     {
  528.         return $this->services;
  529.     }
  530.     public function addService(Service $service): static
  531.     {
  532.         if (!$this->services->contains($service)) {
  533.             $this->services->add($service);
  534.             $service->setMarchand($this);
  535.         }
  536.         return $this;
  537.     }
  538.     public function removeService(Service $service): static
  539.     {
  540.         if ($this->services->removeElement($service)) {
  541.             // set the owning side to null (unless already changed)
  542.             if ($service->getMarchand() === $this) {
  543.                 $service->setMarchand(null);
  544.             }
  545.         }
  546.         return $this;
  547.     }
  548.     public function getAdmin(): ?Admin
  549.     {
  550.         return $this->admin;
  551.     }
  552.     public function setAdmin(?Admin $admin): static
  553.     {
  554.         $this->admin $admin;
  555.         return $this;
  556.     }
  557.     public function getIdnat(): ?string
  558.     {
  559.         return $this->idnat;
  560.     }
  561.     public function setIdnat(?string $idnat): static
  562.     {
  563.         $this->idnat $idnat;
  564.         return $this;
  565.     }
  566.     public function getNumeroimpot(): ?string
  567.     {
  568.         return $this->numeroimpot;
  569.     }
  570.     public function setNumeroimpot(?string $numeroimpot): static
  571.     {
  572.         $this->numeroimpot $numeroimpot;
  573.         return $this;
  574.     }
  575.     public function getCountry(): ?Country
  576.     {
  577.         return $this->country;
  578.     }
  579.     public function setCountry(?Country $country): static
  580.     {
  581.         $this->country $country;
  582.         return $this;
  583.     }
  584.     public function getCity(): ?string
  585.     {
  586.         return $this->city;
  587.     }
  588.     public function setCity(?string $city): static
  589.     {
  590.         $this->city $city;
  591.         return $this;
  592.     }
  593.     public function getProvince(): ?string
  594.     {
  595.         return $this->province;
  596.     }
  597.     public function setProvince(?string $province): static
  598.     {
  599.         $this->province $province;
  600.         return $this;
  601.     }
  602.     public function getNbrebiensimmobiliers(): ?int
  603.     {
  604.         return $this->nbrebiensimmobiliers;
  605.     }
  606.     public function setNbrebiensimmobiliers(?int $nbrebiensimmobiliers): static
  607.     {
  608.         $this->nbrebiensimmobiliers $nbrebiensimmobiliers;
  609.         return $this;
  610.     }
  611.     /**
  612.      * @return Collection<int, Subscription>
  613.      */
  614.     public function getSubscriptions(): Collection
  615.     {
  616.         return $this->subscriptions;
  617.     }
  618.     public function addSubscription(Subscription $subscription): static
  619.     {
  620.         if (!$this->subscriptions->contains($subscription)) {
  621.             $this->subscriptions->add($subscription);
  622.             $subscription->setEntreprise($this);
  623.         }
  624.         return $this;
  625.     }
  626.     public function removeEntreprisePackage(Subscription $subscription): static
  627.     {
  628.         if ($this->subscriptions->removeElement($subscription)) {
  629.             // set the owning side to null (unless already changed)
  630.             if ($subscription->getEntreprise() === $this) {
  631.                 $subscription->setEntreprise(null);
  632.             }
  633.         }
  634.         return $this;
  635.     }
  636.     public function isFreeTrail(): ?bool
  637.     {
  638.         return $this->freeTrail;
  639.     }
  640.     public function setFreeTrail(?bool $freeTrail): static
  641.     {
  642.         $this->freeTrail $freeTrail;
  643.         return $this;
  644.     }
  645.     public function getPackage(): ?Package
  646.     {
  647.         return $this->package;
  648.     }
  649.     public function setPackage(?Package $package): static
  650.     {
  651.         $this->package $package;
  652.         return $this;
  653.     }
  654.     public function getPeriod(): ?string
  655.     {
  656.         return $this->period;
  657.     }
  658.     public function setPeriod(?string $period): static
  659.     {
  660.         $this->period $period;
  661.         return $this;
  662.     }
  663.     public function isRecallpaymentnotification(): ?bool
  664.     {
  665.         return $this->recallpaymentnotification;
  666.     }
  667.     public function setRecallpaymentnotification(bool $recallpaymentnotification): static
  668.     {
  669.         $this->recallpaymentnotification $recallpaymentnotification;
  670.         return $this;
  671.     }
  672.     public function getSmartPaykey(): ?string
  673.     {
  674.         return $this->smartPaykey;
  675.     }
  676.     public function setSmartPaykey(?string $smartPaykey): void
  677.     {
  678.         $this->smartPaykey $smartPaykey;
  679.     }
  680.     /**
  681.      * @return Collection<int, Announcement>
  682.      */
  683.     public function getAnnouncements(): Collection
  684.     {
  685.         return $this->announcements;
  686.     }
  687.     public function addAnnouncement(Announcement $announcement): static
  688.     {
  689.         if (!$this->announcements->contains($announcement)) {
  690.             $this->announcements->add($announcement);
  691.             $announcement->setEntreprise($this);
  692.         }
  693.         return $this;
  694.     }
  695.     public function removeAnnouncement(Announcement $announcement): static
  696.     {
  697.         if ($this->announcements->removeElement($announcement)) {
  698.             // set the owning side to null (unless already changed)
  699.             if ($announcement->getEntreprise() === $this) {
  700.                 $announcement->setEntreprise(null);
  701.             }
  702.         }
  703.         return $this;
  704.     }
  705.     /**
  706.      * @return Collection<int, CashJournal>
  707.      */
  708.     public function getCashJournals(): Collection
  709.     {
  710.         return $this->cashJournals;
  711.     }
  712.     public function addCashJournal(CashJournal $cashJournal): static
  713.     {
  714.         if (!$this->cashJournals->contains($cashJournal)) {
  715.             $this->cashJournals->add($cashJournal);
  716.             $cashJournal->setMarchand($this);
  717.         }
  718.         return $this;
  719.     }
  720.     public function removeCashJournal(CashJournal $cashJournal): static
  721.     {
  722.         if ($this->cashJournals->removeElement($cashJournal)) {
  723.             // set the owning side to null (unless already changed)
  724.             if ($cashJournal->getMarchand() === $this) {
  725.                 $cashJournal->setMarchand(null);
  726.             }
  727.         }
  728.         return $this;
  729.     }
  730.     /**
  731.      * @return Collection<int, CashJournalEntry>
  732.      */
  733.     public function getCashJournalEntries(): Collection
  734.     {
  735.         return $this->cashJournalEntries;
  736.     }
  737.     public function addCashJournalEntry(CashJournalEntry $cashJournalEntry): static
  738.     {
  739.         if (!$this->cashJournalEntries->contains($cashJournalEntry)) {
  740.             $this->cashJournalEntries->add($cashJournalEntry);
  741.             $cashJournalEntry->setMarchand($this);
  742.         }
  743.         return $this;
  744.     }
  745.     public function removeCashJournalEntry(CashJournalEntry $cashJournalEntry): static
  746.     {
  747.         if ($this->cashJournalEntries->removeElement($cashJournalEntry)) {
  748.             // set the owning side to null (unless already changed)
  749.             if ($cashJournalEntry->getMarchand() === $this) {
  750.                 $cashJournalEntry->setMarchand(null);
  751.             }
  752.         }
  753.         return $this;
  754.     }
  755.     /**
  756.      * @return Collection<int, Charge>
  757.      */
  758.     public function getCharges(): Collection
  759.     {
  760.         return $this->charges;
  761.     }
  762.     public function addCharge(Charge $charge): static
  763.     {
  764.         if (!$this->charges->contains($charge)) {
  765.             $this->charges->add($charge);
  766.             $charge->setMarchand($this);
  767.         }
  768.         return $this;
  769.     }
  770.     public function removeCharge(Charge $charge): static
  771.     {
  772.         if ($this->charges->removeElement($charge)) {
  773.             // set the owning side to null (unless already changed)
  774.             if ($charge->getMarchand() === $this) {
  775.                 $charge->setMarchand(null);
  776.             }
  777.         }
  778.         return $this;
  779.     }
  780.     /**
  781.      * @return Collection<int, ChargeAllocation>
  782.      */
  783.     public function getChargeAllocations(): Collection
  784.     {
  785.         return $this->chargeAllocations;
  786.     }
  787.     public function addChargeAllocation(ChargeAllocation $chargeAllocation): static
  788.     {
  789.         if (!$this->chargeAllocations->contains($chargeAllocation)) {
  790.             $this->chargeAllocations->add($chargeAllocation);
  791.             $chargeAllocation->setMarchand($this);
  792.         }
  793.         return $this;
  794.     }
  795.     public function removeChargeAllocation(ChargeAllocation $chargeAllocation): static
  796.     {
  797.         if ($this->chargeAllocations->removeElement($chargeAllocation)) {
  798.             // set the owning side to null (unless already changed)
  799.             if ($chargeAllocation->getMarchand() === $this) {
  800.                 $chargeAllocation->setMarchand(null);
  801.             }
  802.         }
  803.         return $this;
  804.     }
  805.     public function isMakeJournal(): ?bool
  806.     {
  807.         return $this->makeJournal;
  808.     }
  809.     public function setMakeJournal(?bool $makeJournal): static
  810.     {
  811.         $this->makeJournal $makeJournal;
  812.         return $this;
  813.     }
  814.     /**
  815.      * @return Collection<int, Log>
  816.      */
  817.     public function getLogs(): Collection
  818.     {
  819.         return $this->logs;
  820.     }
  821.     public function addLog(Log $log): static
  822.     {
  823.         if (!$this->logs->contains($log)) {
  824.             $this->logs->add($log);
  825.             $log->setMarchand($this);
  826.         }
  827.         return $this;
  828.     }
  829.     public function removeLog(Log $log): static
  830.     {
  831.         if ($this->logs->removeElement($log)) {
  832.             // set the owning side to null (unless already changed)
  833.             if ($log->getMarchand() === $this) {
  834.                 $log->setMarchand(null);
  835.             }
  836.         }
  837.         return $this;
  838.     }
  839.     /**
  840.      * @return Collection<int, Reservation>
  841.      */
  842.     public function getReservations(): Collection
  843.     {
  844.         return $this->reservations;
  845.     }
  846.     public function addReservation(Reservation $reservation): static
  847.     {
  848.         if (!$this->reservations->contains($reservation)) {
  849.             $this->reservations->add($reservation);
  850.             $reservation->setMarchand($this);
  851.         }
  852.         return $this;
  853.     }
  854.     public function removeReservation(Reservation $reservation): static
  855.     {
  856.         if ($this->reservations->removeElement($reservation)) {
  857.             // set the owning side to null (unless already changed)
  858.             if ($reservation->getMarchand() === $this) {
  859.                 $reservation->setMarchand(null);
  860.             }
  861.         }
  862.         return $this;
  863.     }
  864.     /**
  865.      * @return Collection<int, UserEntreprise>
  866.      */
  867.     public function getUserEntreprises(): Collection
  868.     {
  869.         return $this->userEntreprises;
  870.     }
  871.     public function addUserEntreprise(UserEntreprise $userEntreprise): static
  872.     {
  873.         if (!$this->userEntreprises->contains($userEntreprise)) {
  874.             $this->userEntreprises->add($userEntreprise);
  875.             $userEntreprise->setEntreprise($this);
  876.         }
  877.         return $this;
  878.     }
  879.     public function removeUserEntreprise(UserEntreprise $userEntreprise): static
  880.     {
  881.         if ($this->userEntreprises->removeElement($userEntreprise)) {
  882.             // set the owning side to null (unless already changed)
  883.             if ($userEntreprise->getEntreprise() === $this) {
  884.                 $userEntreprise->setEntreprise(null);
  885.             }
  886.         }
  887.         return $this;
  888.     }
  889.     public function getOwner(): ?User
  890.     {
  891.         return $this->owner;
  892.     }
  893.     public function setOwner(?User $owner): static
  894.     {
  895.         $this->owner $owner;
  896.         return $this;
  897.     }
  898.     public function getDefaultFxRate(): ?string
  899.     {
  900.         return $this->defaultFxRate;
  901.     }
  902.     public function setDefaultFxRate(?string $defaultFxRate): static
  903.     {
  904.         $this->defaultFxRate $defaultFxRate;
  905.         return $this;
  906.     }
  907.     public function getCurrency(): ?Currency
  908.     {
  909.         return $this->currency;
  910.     }
  911.     public function setCurrency(?Currency $currency): static
  912.     {
  913.         $this->currency $currency;
  914.         return $this;
  915.     }
  916.     public function isIsDefaultFxRateApply(): ?bool
  917.     {
  918.         return $this->isDefaultFxRateApply;
  919.     }
  920.     public function setIsDefaultFxRateApply(?bool $isDefaultFxRateApply): static
  921.     {
  922.         $this->isDefaultFxRateApply $isDefaultFxRateApply;
  923.         return $this;
  924.     }
  925.     public function getTva(): ?string
  926.     {
  927.         return $this->tva;
  928.     }
  929.     public function setTva(?string $tva): static
  930.     {
  931.         $this->tva $tva;
  932.         return $this;
  933.     }
  934.     public function getDgiNif(): ?string
  935.     {
  936.         return $this->dgiNif;
  937.     }
  938.     public function setDgiNif(?string $dgiNif): static
  939.     {
  940.         $this->dgiNif $dgiNif;
  941.         return $this;
  942.     }
  943.     public function getDgiIsf(): ?string
  944.     {
  945.         return $this->dgiIsf;
  946.     }
  947.     public function setDgiIsf(?string $dgiIsf): static
  948.     {
  949.         $this->dgiIsf $dgiIsf;
  950.         return $this;
  951.     }
  952.     public function getDgiToken(): ?string
  953.     {
  954.         return $this->dgiToken;
  955.     }
  956.     public function setDgiToken(?string $dgiToken): static
  957.     {
  958.         $this->dgiToken $dgiToken;
  959.         return $this;
  960.     }
  961.     public function getDgiEnv(): ?string
  962.     {
  963.         return $this->dgiEnv;
  964.     }
  965.     public function setDgiEnv(?string $dgiEnv): static
  966.     {
  967.         $this->dgiEnv $dgiEnv;
  968.         return $this;
  969.     }
  970.     public function getDgiDefaultTaxGroup(): ?string
  971.     {
  972.         return $this->dgiDefaultTaxGroup;
  973.     }
  974.     public function setDgiDefaultTaxGroup(?string $dgiDefaultTaxGroup): static
  975.     {
  976.         $this->dgiDefaultTaxGroup $dgiDefaultTaxGroup;
  977.         return $this;
  978.     }
  979.     public function getDgiDefaultItemType(): ?string
  980.     {
  981.         return $this->dgiDefaultItemType;
  982.     }
  983.     public function setDgiDefaultItemType(?string $dgiDefaultItemType): static
  984.     {
  985.         $this->dgiDefaultItemType $dgiDefaultItemType;
  986.         return $this;
  987.     }
  988.     public function isDgiServiceEnabled(): ?bool
  989.     {
  990.         return $this->dgiServiceEnabled;
  991.     }
  992.     public function setDgiServiceEnabled(?bool $dgiServiceEnabled): static
  993.     {
  994.         $this->dgiServiceEnabled $dgiServiceEnabled;
  995.         return $this;
  996.     }
  997.     public function getDgiTaxRate(): ?string
  998.     {
  999.         return $this->dgiTaxRate;
  1000.     }
  1001.     public function setDgiTaxRate(?string $dgiTaxRate): static
  1002.     {
  1003.         $this->dgiTaxRate $dgiTaxRate;
  1004.         return $this;
  1005.     }
  1006. }