src/Entity/IctusPharmacie.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Validator\Constraints as CustomAssert;
  6. use Doctrine\Common\Collections\Collection;
  7. use App\Repository\IctusPharmacieRepository;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  11. /**
  12.  * @ORM\Entity(repositoryClass=IctusPharmacieRepository::class)
  13.  * @UniqueEntity(fields = {"pagename"},message ="Page existe déjà existe")
  14.  */
  15. class IctusPharmacie
  16. {
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue
  20.      * @ORM\Column(type="integer")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $uuid;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $designation;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $logo;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $numeroordre;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $nif;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $stat;
  47.     /**
  48.      * @ORM\Column(type="boolean", nullable=true)
  49.      */
  50.     private $isValid false;
  51.     /**
  52.      * @ORM\Column(type="float", nullable=true)
  53.      */
  54.     private $logitude;
  55.     /**
  56.      * @ORM\Column(type="float", nullable=true)
  57.      */
  58.     private $latitude;
  59.     /**
  60.      * @ORM\OneToMany(targetEntity=Stockpharmacie::class, mappedBy="ictuspharmacie")
  61.      */
  62.     private $stockpharmacies;
  63.     /**
  64.      * @ORM\OneToMany(targetEntity=User::class, mappedBy="ictusPharmacie")
  65.      */
  66.     private $users;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $adresse;
  71.     /**
  72.      * @ORM\ManyToOne(targetEntity=Quartier::class, inversedBy="ictusPharmacies")
  73.      */
  74.     private $quartier;
  75.     /**
  76.      * @ORM\OneToMany(targetEntity=LivraisonPharmacie::class, mappedBy="ictus_pharmacie")
  77.      */
  78.     private $livraisonPharmacies;
  79.     /**
  80.      * @ORM\OneToMany(targetEntity=IctusPaiementPharmacie::class, mappedBy="pharmacie")
  81.      */
  82.     private $ictusPaiementPharmacies;
  83.     /**
  84.      * @ORM\OneToMany(targetEntity=IctusHoraire::class, mappedBy="ictus_pharmacie")
  85.      */
  86.     private $ictusHoraires;
  87.     /**
  88.      * @ORM\OneToMany(targetEntity=IctusCommande::class, mappedBy="pharmacie")
  89.      */
  90.     private $ictusCommandes;
  91.     private $distanceParRapportPatient;
  92.     /**
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      */
  95.     private $photocouverture;
  96.     /**
  97.      * @ORM\Column(type="string", length=255, nullable=true)
  98.      */
  99.     private $pagename;
  100.     /**
  101.      * @ORM\OneToMany(targetEntity=IctoRemboursement::class, mappedBy="demandeur", orphanRemoval=true)
  102.      */
  103.     private $ictoRemboursements;
  104.     /**
  105.      * @ORM\OneToMany(targetEntity=IctoParampov::class, mappedBy="pharmacie", orphanRemoval=true)
  106.      */
  107.     private $ictoParampovs;
  108.     /**
  109.      * @ORM\OneToMany(targetEntity=IctoMouvement::class, mappedBy="pharmacie", orphanRemoval=true)
  110.      */
  111.     private $ictoMouvements;
  112.     /**
  113.      * @ORM\OneToMany(targetEntity=AchatIctocoin::class, mappedBy="pharmacie", orphanRemoval=true)
  114.      */
  115.     private $achatIctocoins;
  116.     /**
  117.      * @ORM\OneToMany(targetEntity=IctusPanierSpecial::class, mappedBy="pharmacie", orphanRemoval=true)
  118.      */
  119.     private $ictusPanierSpecials;
  120.     /**
  121.      * @ORM\Column(type="boolean", nullable=true)
  122.      */
  123.     private $isCommandeSpecial;
  124.     /**
  125.      * @ORM\OneToMany(targetEntity=CommandeSpecial::class, mappedBy="pharmacie")
  126.      */
  127.     private $commandeSpecials;
  128.     /**
  129.      * @ORM\Column(type="boolean", nullable=true)
  130.      */
  131.     private $isValideAutomatique;
  132.     /**
  133.      * @ORM\Column(type="float", nullable=true)
  134.      */
  135.     private $pourcentageCommandeSpecial;
  136.     /**
  137.      * @ORM\OneToMany(targetEntity=FacturePatient::class, mappedBy="pharmacie", orphanRemoval=true)
  138.      */
  139.     private $facturePatients;
  140.     /**
  141.      * @ORM\Column(type="string", length=255, nullable=true)
  142.      */
  143.     private $rcs;
  144.     /**
  145.      * @ORM\OneToMany(targetEntity=ProductBlackList::class, mappedBy="pharmacie", orphanRemoval=true)
  146.      */
  147.     private $productBlackLists;
  148.     /**
  149.      * @ORM\OneToMany(targetEntity=HistoriqueMaj::class, mappedBy="pharmacie", orphanRemoval=true)
  150.      */
  151.     private $historiqueMajs;
  152.     /**
  153.      * @ORM\ManyToMany(targetEntity=Tierpayant::class, mappedBy="pharmacie")
  154.      */
  155.     private $tierpayants;
  156.     /**
  157.      * @ORM\OneToMany(targetEntity=Parcours::class, mappedBy="pharmacie")
  158.      */
  159.     private $parcours;
  160.     /**
  161.      * @ORM\Column(type="string", length=255, nullable=true)
  162.      */
  163.     private $mailResponsable;
  164.     /**
  165.      * @ORM\OneToMany(targetEntity=FacturePharmacie::class, mappedBy="pharmacie", orphanRemoval=true)
  166.      */
  167.     private $facturePharmacies;
  168.     /**
  169.      * @ORM\OneToMany(targetEntity=Rate::class, mappedBy="pharmacie")
  170.      */
  171.     private $rates;
  172.     /**
  173.      * @ORM\OneToMany(targetEntity=IctusReclamation::class, mappedBy="pharmacie")
  174.      */
  175.     private $ictusReclamations;
  176.     /**
  177.      * @ORM\Column(type="string", length=255, nullable=true)
  178.      */
  179.     private $realDesignation;
  180.     public function __construct()
  181.     {
  182.         $this->stockpharmacies = new ArrayCollection();
  183.         $this->users           = new ArrayCollection();
  184.         $this->uuid            uniqid((new \DateTime())->format('YmdHis'));
  185.         $this->livraisonPharmacies = new ArrayCollection();
  186.         $this->ictusPaiementPharmacies = new ArrayCollection();
  187.         $this->ictusHoraires = new ArrayCollection();
  188.         $this->ictusCommandes = new ArrayCollection();
  189.         $this->ictoRemboursements = new ArrayCollection();
  190.         $this->ictoParampovs = new ArrayCollection();
  191.         $this->ictoMouvements = new ArrayCollection();
  192.         $this->achatIctocoins = new ArrayCollection();
  193.         $this->ictusPanierSpecials = new ArrayCollection();
  194.         $this->commandeSpecials = new ArrayCollection();
  195.         $this->facturePatients = new ArrayCollection();
  196.         $this->productBlackLists = new ArrayCollection();
  197.         $this->historiqueMajs = new ArrayCollection();
  198.         $this->tierpayants = new ArrayCollection();
  199.         $this->parcours = new ArrayCollection();
  200.         $this->facturePharmacies = new ArrayCollection();
  201.         $this->rates = new ArrayCollection();
  202.         $this->ictusReclamations = new ArrayCollection();
  203.     }
  204.     public function getId(): ?int
  205.     {
  206.         return $this->id;
  207.     }
  208.     public function setId($id) {
  209.         $this->id $id;
  210.         return $this;
  211.     }
  212.     public function getUuid(): ?string
  213.     {
  214.         return $this->uuid;
  215.     }
  216.     public function setUuid(?string $uuid): self
  217.     {
  218.         $this->uuid $uuid;
  219.         return $this;
  220.     }
  221.     public function getDesignation(): ?string
  222.     {
  223.         return $this->designation;
  224.     }
  225.     public function setDesignation(string $designation): self
  226.     {
  227.         $this->designation $designation;
  228.         return $this;
  229.     }
  230.     public function getLogo(): ?string
  231.     {
  232.         return $this->logo;
  233.     }
  234.     public function setLogo(?string $logo): self
  235.     {
  236.         $this->logo $logo;
  237.         return $this;
  238.     }
  239.     public function getNumeroordre(): ?string
  240.     {
  241.         return $this->numeroordre;
  242.     }
  243.     public function setNumeroordre(?string $numeroordre): self
  244.     {
  245.         $this->numeroordre $numeroordre;
  246.         return $this;
  247.     }
  248.     public function getNif(): ?string
  249.     {
  250.         return $this->nif;
  251.     }
  252.     public function setNif(?string $nif): self
  253.     {
  254.         $this->nif $nif;
  255.         return $this;
  256.     }
  257.     public function getStat(): ?string
  258.     {
  259.         return $this->stat;
  260.     }
  261.     public function setStat(?string $stat): self
  262.     {
  263.         $this->stat $stat;
  264.         return $this;
  265.     }
  266.     public function isIsValid(): ?bool
  267.     {
  268.         return $this->isValid;
  269.     }
  270.     public function setIsValid(?bool $isValid): self
  271.     {
  272.         $this->isValid $isValid;
  273.         return $this;
  274.     }
  275.     public function getLogitude(): ?float
  276.     {
  277.         return $this->logitude;
  278.     }
  279.     public function setLogitude(?float $logitude): self
  280.     {
  281.         $this->logitude $logitude;
  282.         return $this;
  283.     }
  284.     public function getLatitude(): ?float
  285.     {
  286.         return $this->latitude;
  287.     }
  288.     public function setLatitude(?float $latitude): self
  289.     {
  290.         $this->latitude $latitude;
  291.         return $this;
  292.     }
  293.     /**
  294.      * @return Collection<int, Stockpharmacie>
  295.      */
  296.     public function getStockpharmacies(): Collection
  297.     {
  298.         return $this->stockpharmacies;
  299.     }
  300.     public function addStockpharmacy(Stockpharmacie $stockpharmacy): self
  301.     {
  302.         if (!$this->stockpharmacies->contains($stockpharmacy)) {
  303.             $this->stockpharmacies[] = $stockpharmacy;
  304.             $stockpharmacy->setIctuspharmacie($this);
  305.         }
  306.         return $this;
  307.     }
  308.     public function removeStockpharmacy(Stockpharmacie $stockpharmacy): self
  309.     {
  310.         if ($this->stockpharmacies->removeElement($stockpharmacy)) {
  311.             // set the owning side to null (unless already changed)
  312.             if ($stockpharmacy->getIctuspharmacie() === $this) {
  313.                 $stockpharmacy->setIctuspharmacie(null);
  314.             }
  315.         }
  316.         return $this;
  317.     }
  318.     /**
  319.      * @return Collection<int, User>
  320.      */
  321.     public function getUsers(): Collection
  322.     {
  323.         return $this->users;
  324.     }
  325.     public function addUser(User $user): self
  326.     {
  327.         if (!$this->users->contains($user)) {
  328.             $this->users[] = $user;
  329.             $user->setIctusPharmacie($this);
  330.         }
  331.         return $this;
  332.     }
  333.     public function removeUser(User $user): self
  334.     {
  335.         if ($this->users->removeElement($user)) {
  336.             // set the owning side to null (unless already changed)
  337.             if ($user->getIctusPharmacie() === $this) {
  338.                 $user->setIctusPharmacie(null);
  339.             }
  340.         }
  341.         return $this;
  342.     }
  343.     public function getAdresse(): ?string
  344.     {
  345.         return $this->adresse;
  346.     }
  347.     public function setAdresse(?string $adresse): self
  348.     {
  349.         $this->adresse $adresse;
  350.         return $this;
  351.     }
  352.     public function getQuartier(): ?Quartier
  353.     {
  354.         return $this->quartier;
  355.     }
  356.     public function setQuartier(?Quartier $quartier): self
  357.     {
  358.         $this->quartier $quartier;
  359.         return $this;
  360.     }
  361.     /**
  362.      * @return Collection<int, LivraisonPharmacie>
  363.      */
  364.     public function getLivraisonPharmacies(): Collection
  365.     {
  366.         return $this->livraisonPharmacies;
  367.     }
  368.     public function addLivraisonPharmacy(LivraisonPharmacie $livraisonPharmacy): self
  369.     {
  370.         if (!$this->livraisonPharmacies->contains($livraisonPharmacy)) {
  371.             $this->livraisonPharmacies[] = $livraisonPharmacy;
  372.             $livraisonPharmacy->setIctusPharmacie($this);
  373.         }
  374.         return $this;
  375.     }
  376.     public function removeLivraisonPharmacy(LivraisonPharmacie $livraisonPharmacy): self
  377.     {
  378.         if ($this->livraisonPharmacies->removeElement($livraisonPharmacy)) {
  379.             // set the owning side to null (unless already changed)
  380.             if ($livraisonPharmacy->getIctusPharmacie() === $this) {
  381.                 $livraisonPharmacy->setIctusPharmacie(null);
  382.             }
  383.         }
  384.         return $this;
  385.     }
  386.     /**
  387.      * @return Collection<int, IctusPaiementPharmacie>
  388.      */
  389.     public function getIctusPaiementPharmacies(): Collection
  390.     {
  391.         return $this->ictusPaiementPharmacies;
  392.     }
  393.     public function addIctusPaiementPharmacy(IctusPaiementPharmacie $ictusPaiementPharmacy): self
  394.     {
  395.         if (!$this->ictusPaiementPharmacies->contains($ictusPaiementPharmacy)) {
  396.             $this->ictusPaiementPharmacies[] = $ictusPaiementPharmacy;
  397.             $ictusPaiementPharmacy->setPharmacie($this);
  398.         }
  399.         return $this;
  400.     }
  401.     public function removeIctusPaiementPharmacy(IctusPaiementPharmacie $ictusPaiementPharmacy): self
  402.     {
  403.         if ($this->ictusPaiementPharmacies->removeElement($ictusPaiementPharmacy)) {
  404.             // set the owning side to null (unless already changed)
  405.             if ($ictusPaiementPharmacy->getPharmacie() === $this) {
  406.                 $ictusPaiementPharmacy->setPharmacie(null);
  407.             }
  408.         }
  409.         return $this;
  410.     }
  411.     /**
  412.      * @return Collection<int, IctusHoraire>
  413.      */
  414.     public function getIctusHoraires(): Collection
  415.     {
  416.         return $this->ictusHoraires;
  417.     }
  418.     public function addIctusHoraire(IctusHoraire $ictusHoraire): self
  419.     {
  420.         if (!$this->ictusHoraires->contains($ictusHoraire)) {
  421.             $this->ictusHoraires[] = $ictusHoraire;
  422.             $ictusHoraire->setIctusPharmacie($this);
  423.         }
  424.         return $this;
  425.     }
  426.     public function removeIctusHoraire(IctusHoraire $ictusHoraire): self
  427.     {
  428.         if ($this->ictusHoraires->removeElement($ictusHoraire)) {
  429.             // set the owning side to null (unless already changed)
  430.             if ($ictusHoraire->getIctusPharmacie() === $this) {
  431.                 $ictusHoraire->setIctusPharmacie(null);
  432.             }
  433.         }
  434.         return $this;
  435.     }
  436.     /**
  437.      * @return Collection<int, IctusCommande>
  438.      */
  439.     public function getIctusCommandes(): Collection
  440.     {
  441.         return $this->ictusCommandes;
  442.     }
  443.     public function addIctusCommande(IctusCommande $ictusCommande): self
  444.     {
  445.         if (!$this->ictusCommandes->contains($ictusCommande)) {
  446.             $this->ictusCommandes[] = $ictusCommande;
  447.             $ictusCommande->setPharmacie($this);
  448.         }
  449.         return $this;
  450.     }
  451.     public function removeIctusCommande(IctusCommande $ictusCommande): self
  452.     {
  453.         if ($this->ictusCommandes->removeElement($ictusCommande)) {
  454.             // set the owning side to null (unless already changed)
  455.             if ($ictusCommande->getPharmacie() === $this) {
  456.                 $ictusCommande->setPharmacie(null);
  457.             }
  458.         }
  459.         return $this;
  460.     }
  461.     /**
  462.      * Get the value of distanceParRapportPatient
  463.      */ 
  464.     public function getDistanceParRapportPatient()
  465.     {
  466.         return $this->distanceParRapportPatient;
  467.     }
  468.     /**
  469.      * Set the value of distanceParRapportPatient
  470.      *
  471.      * @return  self
  472.      */ 
  473.     public function setDistanceParRapportPatient($distanceParRapportPatient)
  474.     {
  475.         $this->distanceParRapportPatient $distanceParRapportPatient;
  476.         return $this;
  477.     }
  478.     public function getPhotocouverture(): ?string
  479.     {
  480.         return $this->photocouverture;
  481.     }
  482.     public function setPhotocouverture(?string $photocouverture): self
  483.     {
  484.         $this->photocouverture $photocouverture;
  485.         return $this;
  486.     }
  487.     public function getPagename(): ?string
  488.     {
  489.         return $this->pagename;
  490.     }
  491.     public function setPagename(?string $pagename): self
  492.     {
  493.         $this->pagename $pagename;
  494.         return $this;
  495.     }
  496.     /**
  497.      * @return Collection<int, IctoRemboursement>
  498.      */
  499.     public function getIctoRemboursements(): Collection
  500.     {
  501.         return $this->ictoRemboursements;
  502.     }
  503.     public function addIctoRemboursement(IctoRemboursement $ictoRemboursement): self
  504.     {
  505.         if (!$this->ictoRemboursements->contains($ictoRemboursement)) {
  506.             $this->ictoRemboursements[] = $ictoRemboursement;
  507.             $ictoRemboursement->setDemandeur($this);
  508.         }
  509.         return $this;
  510.     }
  511.     public function removeIctoRemboursement(IctoRemboursement $ictoRemboursement): self
  512.     {
  513.         if ($this->ictoRemboursements->removeElement($ictoRemboursement)) {
  514.             // set the owning side to null (unless already changed)
  515.             if ($ictoRemboursement->getDemandeur() === $this) {
  516.                 $ictoRemboursement->setDemandeur(null);
  517.             }
  518.         }
  519.         return $this;
  520.     }
  521.     /**
  522.      * @return Collection<int, IctoParampov>
  523.      */
  524.     public function getIctoParampovs(): Collection
  525.     {
  526.         return $this->ictoParampovs;
  527.     }
  528.     public function addIctoParampov(IctoParampov $ictoParampov): self
  529.     {
  530.         if (!$this->ictoParampovs->contains($ictoParampov)) {
  531.             $this->ictoParampovs[] = $ictoParampov;
  532.             $ictoParampov->setPharmacie($this);
  533.         }
  534.         return $this;
  535.     }
  536.     public function removeIctoParampov(IctoParampov $ictoParampov): self
  537.     {
  538.         if ($this->ictoParampovs->removeElement($ictoParampov)) {
  539.             // set the owning side to null (unless already changed)
  540.             if ($ictoParampov->getPharmacie() === $this) {
  541.                 $ictoParampov->setPharmacie(null);
  542.             }
  543.         }
  544.         return $this;
  545.     }
  546.     /**
  547.      * @return Collection<int, IctoMouvement>
  548.      */
  549.     public function getIctoMouvements(): Collection
  550.     {
  551.         return $this->ictoMouvements;
  552.     }
  553.     public function addIctoMouvement(IctoMouvement $ictoMouvement): self
  554.     {
  555.         if (!$this->ictoMouvements->contains($ictoMouvement)) {
  556.             $this->ictoMouvements[] = $ictoMouvement;
  557.             $ictoMouvement->setPharmacie($this);
  558.         }
  559.         return $this;
  560.     }
  561.     public function removeIctoMouvement(IctoMouvement $ictoMouvement): self
  562.     {
  563.         if ($this->ictoMouvements->removeElement($ictoMouvement)) {
  564.             // set the owning side to null (unless already changed)
  565.             if ($ictoMouvement->getPharmacie() === $this) {
  566.                 $ictoMouvement->setPharmacie(null);
  567.             }
  568.         }
  569.         return $this;
  570.     }
  571.     /**
  572.      * @return Collection<int, AchatIctocoin>
  573.      */
  574.     public function getAchatIctocoins(): Collection
  575.     {
  576.         return $this->achatIctocoins;
  577.     }
  578.     public function addAchatIctocoin(AchatIctocoin $achatIctocoin): self
  579.     {
  580.         if (!$this->achatIctocoins->contains($achatIctocoin)) {
  581.             $this->achatIctocoins[] = $achatIctocoin;
  582.             $achatIctocoin->setPharmacie($this);
  583.         }
  584.         return $this;
  585.     }
  586.     public function removeAchatIctocoin(AchatIctocoin $achatIctocoin): self
  587.     {
  588.         if ($this->achatIctocoins->removeElement($achatIctocoin)) {
  589.             // set the owning side to null (unless already changed)
  590.             if ($achatIctocoin->getPharmacie() === $this) {
  591.                 $achatIctocoin->setPharmacie(null);
  592.             }
  593.         }
  594.         return $this;
  595.     }
  596.     /**
  597.      * @return Collection<int, IctusPanierSpecial>
  598.      */
  599.     public function getIctusPanierSpecials(): Collection
  600.     {
  601.         return $this->ictusPanierSpecials;
  602.     }
  603.     public function addIctusPanierSpecial(IctusPanierSpecial $ictusPanierSpecial): self
  604.     {
  605.         if (!$this->ictusPanierSpecials->contains($ictusPanierSpecial)) {
  606.             $this->ictusPanierSpecials[] = $ictusPanierSpecial;
  607.             $ictusPanierSpecial->setPharmacie($this);
  608.         }
  609.         return $this;
  610.     }
  611.     public function removeIctusPanierSpecial(IctusPanierSpecial $ictusPanierSpecial): self
  612.     {
  613.         if ($this->ictusPanierSpecials->removeElement($ictusPanierSpecial)) {
  614.             // set the owning side to null (unless already changed)
  615.             if ($ictusPanierSpecial->getPharmacie() === $this) {
  616.                 $ictusPanierSpecial->setPharmacie(null);
  617.             }
  618.         }
  619.         return $this;
  620.     }
  621.     public function isIsCommandeSpecial(): ?bool
  622.     {
  623.         return $this->isCommandeSpecial;
  624.     }
  625.     public function setIsCommandeSpecial(?bool $isCommandeSpecial): self
  626.     {
  627.         $this->isCommandeSpecial $isCommandeSpecial;
  628.         return $this;
  629.     }
  630.     /**
  631.      * @return Collection<int, CommandeSpecial>
  632.      */
  633.     public function getCommandeSpecials(): Collection
  634.     {
  635.         return $this->commandeSpecials;
  636.     }
  637.     public function addCommandeSpecial(CommandeSpecial $commandeSpecial): self
  638.     {
  639.         if (!$this->commandeSpecials->contains($commandeSpecial)) {
  640.             $this->commandeSpecials[] = $commandeSpecial;
  641.             $commandeSpecial->setPharmacie($this);
  642.         }
  643.         return $this;
  644.     }
  645.     public function removeCommandeSpecial(CommandeSpecial $commandeSpecial): self
  646.     {
  647.         if ($this->commandeSpecials->removeElement($commandeSpecial)) {
  648.             // set the owning side to null (unless already changed)
  649.             if ($commandeSpecial->getPharmacie() === $this) {
  650.                 $commandeSpecial->setPharmacie(null);
  651.             }
  652.         }
  653.         return $this;
  654.     }
  655.     public function isIsValideAutomatique(): ?bool
  656.     {
  657.         return $this->isValideAutomatique;
  658.     }
  659.     public function setIsValideAutomatique(?bool $isValideAutomatique): self
  660.     {
  661.         $this->isValideAutomatique $isValideAutomatique;
  662.         return $this;
  663.     }
  664.     public function getPourcentageCommandeSpecial(): ?float
  665.     {
  666.         return $this->pourcentageCommandeSpecial;
  667.     }
  668.     public function setPourcentageCommandeSpecial(?float $pourcentageCommandeSpecial): self
  669.     {
  670.         $this->pourcentageCommandeSpecial $pourcentageCommandeSpecial;
  671.         return $this;
  672.     }
  673.     /**
  674.      * @return Collection<int, FacturePatient>
  675.      */
  676.     public function getFacturePatients(): Collection
  677.     {
  678.         return $this->facturePatients;
  679.     }
  680.     public function addFacturePatient(FacturePatient $facturePatient): self
  681.     {
  682.         if (!$this->facturePatients->contains($facturePatient)) {
  683.             $this->facturePatients[] = $facturePatient;
  684.             $facturePatient->setPharmacie($this);
  685.         }
  686.         return $this;
  687.     }
  688.     public function removeFacturePatient(FacturePatient $facturePatient): self
  689.     {
  690.         if ($this->facturePatients->removeElement($facturePatient)) {
  691.             // set the owning side to null (unless already changed)
  692.             if ($facturePatient->getPharmacie() === $this) {
  693.                 $facturePatient->setPharmacie(null);
  694.             }
  695.         }
  696.         return $this;
  697.     }
  698.     public function getRcs(): ?string
  699.     {
  700.         return $this->rcs;
  701.     }
  702.     public function setRcs(?string $rcs): self
  703.     {
  704.         $this->rcs $rcs;
  705.         return $this;
  706.     }
  707.     /**
  708.      * @return Collection<int, ProductBlackList>
  709.      */
  710.     public function getProductBlackLists(): Collection
  711.     {
  712.         return $this->productBlackLists;
  713.     }
  714.     public function addProductBlackList(ProductBlackList $productBlackList): self
  715.     {
  716.         if (!$this->productBlackLists->contains($productBlackList)) {
  717.             $this->productBlackLists[] = $productBlackList;
  718.             $productBlackList->setPharmacie($this);
  719.         }
  720.         return $this;
  721.     }
  722.     public function removeProductBlackList(ProductBlackList $productBlackList): self
  723.     {
  724.         if ($this->productBlackLists->removeElement($productBlackList)) {
  725.             // set the owning side to null (unless already changed)
  726.             if ($productBlackList->getPharmacie() === $this) {
  727.                 $productBlackList->setPharmacie(null);
  728.             }
  729.         }
  730.         return $this;
  731.     }
  732.     /**
  733.      * @return Collection<int, HistoriqueMaj>
  734.      */
  735.     public function getHistoriqueMajs(): Collection
  736.     {
  737.         return $this->historiqueMajs;
  738.     }
  739.     public function addHistoriqueMaj(HistoriqueMaj $historiqueMaj): self
  740.     {
  741.         if (!$this->historiqueMajs->contains($historiqueMaj)) {
  742.             $this->historiqueMajs[] = $historiqueMaj;
  743.             $historiqueMaj->setPharmacie($this);
  744.         }
  745.         return $this;
  746.     }
  747.     public function removeHistoriqueMaj(HistoriqueMaj $historiqueMaj): self
  748.     {
  749.         if ($this->historiqueMajs->removeElement($historiqueMaj)) {
  750.             // set the owning side to null (unless already changed)
  751.             if ($historiqueMaj->getPharmacie() === $this) {
  752.                 $historiqueMaj->setPharmacie(null);
  753.             }
  754.         }
  755.         return $this;
  756.     }
  757.     /**
  758.      * @return Collection<int, Tierpayant>
  759.      */
  760.     public function getTierpayants(): Collection
  761.     {
  762.         return $this->tierpayants;
  763.     }
  764.     public function addTierpayant(Tierpayant $tierpayant): self
  765.     {
  766.         if (!$this->tierpayants->contains($tierpayant)) {
  767.             $this->tierpayants[] = $tierpayant;
  768.             $tierpayant->addPharmacie($this);
  769.         }
  770.         return $this;
  771.     }
  772.     public function removeTierpayant(Tierpayant $tierpayant): self
  773.     {
  774.         if ($this->tierpayants->removeElement($tierpayant)) {
  775.             $tierpayant->removePharmacie($this);
  776.         }
  777.         return $this;
  778.     }
  779.     public function getMailResponsable(): ?string
  780.     {
  781.         return $this->mailResponsable;
  782.     }
  783.     public function setMailResponsable(?string $mailResponsable): self
  784.     {
  785.         $this->mailResponsable $mailResponsable;
  786.         return $this;
  787.     }
  788.     /**
  789.      * @return Collection<int, FacturePharmacie>
  790.      */
  791.     public function getFacturePharmacies(): Collection
  792.     {
  793.         return $this->facturePharmacies;
  794.     }
  795.     public function addFacturePharmacy(FacturePharmacie $facturePharmacy): self
  796.     {
  797.         if (!$this->facturePharmacies->contains($facturePharmacy)) {
  798.             $this->facturePharmacies[] = $facturePharmacy;
  799.             $facturePharmacy->setPharmacie($this);
  800.         }
  801.         return $this;
  802.     }
  803.     public function removeFacturePharmacy(FacturePharmacie $facturePharmacy): self
  804.     {
  805.         if ($this->facturePharmacies->removeElement($facturePharmacy)) {
  806.             // set the owning side to null (unless already changed)
  807.             if ($facturePharmacy->getPharmacie() === $this) {
  808.                 $facturePharmacy->setPharmacie(null);
  809.             }
  810.         }
  811.         return $this;
  812.     }
  813.     /**
  814.      * @return Collection<int, Rate>
  815.      */
  816.     public function getRates(): Collection
  817.     {
  818.         return $this->rates;
  819.     }
  820.     public function addRate(Rate $rate): self
  821.     {
  822.         if (!$this->rates->contains($rate)) {
  823.             $this->rates[] = $rate;
  824.             $rate->setPharmacie($this);
  825.         }
  826.         return $this;
  827.     }
  828.     public function removeRate(Rate $rate): self
  829.     {
  830.         if ($this->rates->removeElement($rate)) {
  831.             // set the owning side to null (unless already changed)
  832.             if ($rate->getPharmacie() === $this) {
  833.                 $rate->setPharmacie(null);
  834.             }
  835.         }
  836.         return $this;
  837.     }
  838.     /**
  839.      * @return Collection<int, IctusReclamation>
  840.      */
  841.     public function getIctusReclamations(): Collection
  842.     {
  843.         return $this->ictusReclamations;
  844.     }
  845.     public function addIctusReclamation(IctusReclamation $ictusReclamation): self
  846.     {
  847.         if (!$this->ictusReclamations->contains($ictusReclamation)) {
  848.             $this->ictusReclamations[] = $ictusReclamation;
  849.             $ictusReclamation->setPharmacie($this);
  850.         }
  851.         return $this;
  852.     }
  853.     public function removeIctusReclamation(IctusReclamation $ictusReclamation): self
  854.     {
  855.         if ($this->ictusReclamations->removeElement($ictusReclamation)) {
  856.             // set the owning side to null (unless already changed)
  857.             if ($ictusReclamation->getPharmacie() === $this) {
  858.                 $ictusReclamation->setPharmacie(null);
  859.             }
  860.         }
  861.         return $this;
  862.     }
  863.     public function getRealDesignation(): ?string
  864.     {
  865.         return $this->realDesignation;
  866.     }
  867.     public function setRealDesignation(?string $realDesignation): self
  868.     {
  869.         $this->realDesignation $realDesignation;
  870.         return $this;
  871.     }
  872. }