src/Entity/Fournisseurs/Fournisseur.php line 38

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fournisseurs;
  3. use App\Entity\Adresses\Adresse;
  4. use App\Entity\Articles\Article;
  5. use App\Entity\Articles\Compta;
  6. use App\Entity\Articles\ConditionAchat;
  7. use App\Entity\Articles\Devise;
  8. use App\Entity\Articles\MouvementStock;
  9. use App\Entity\Articles\prixAchat;
  10. use App\Entity\GestionComerciale\CommandeFournisseur;
  11. use App\Entity\GestionComerciale\ModeReglement;
  12. use App\Entity\GestionComerciale\MouvementCaisse;
  13. use App\Entity\GestionComerciale\Reception;
  14. use App\Entity\GestionComerciale\RetourFournisseur;
  15. use App\Entity\Litiges\Litige;
  16. use App\Entity\Utilisateur\contact;
  17. use App\Entity\Utilisateur\Utilisateur;
  18. use DateTime;
  19. use Doctrine\Common\Collections\ArrayCollection;
  20. use Doctrine\Common\Collections\Collection;
  21. use Doctrine\ORM\Mapping as ORM;
  22. use Gedmo\Mapping\Annotation as Gedmo;
  23. use Symfony\Component\Validator\Constraints as Assert;
  24. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  25. use App\Annotations\SecuredEntity;
  26. /**
  27.  * Fournisseur
  28.  *
  29.  * @ORM\Table("fournisseur__fournisseur")
  30.  * @ORM\Entity(repositoryClass="App\Repository\Fournisseurs\FournisseurRepository")
  31.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  32.  * @UniqueEntity(fields={"reference"}, message="Cette référence existe déjà")
  33.  * @SecuredEntity(name="Fournisseur", group="FOURNISSEURS")
  34.  */
  35. class Fournisseur
  36. {
  37.     /**
  38.      * @ORM\Column(name="id", type="integer")
  39.      * @ORM\Id
  40.      * @ORM\GeneratedValue(strategy="AUTO")
  41.      */
  42.     private $id;
  43.     /**
  44.      * @ORM\OneToMany(targetEntity="App\Entity\Fournisseurs\FournisseurCategorie", mappedBy="fournisseur")
  45.      */
  46.     private $fournisseurCategorie;
  47.     /**
  48.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\RetourFournisseur", mappedBy="fournisseur")
  49.      */
  50.     private $retoursFournisseurs;
  51.     /**
  52.     * @ORM\OneToMany(targetEntity="App\Entity\Litiges\Litige", mappedBy="fournisseur")
  53.     */
  54.     private $litiges;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseurs\Categorie", inversedBy="fournisseurs")
  57.      * @ORM\JoinColumn(nullable=true)
  58.      */
  59.     private $categorie;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ModeReglement", cascade={"persist"})
  62.      * @ORM\JoinColumn(nullable=true)
  63.      */
  64.     private $modereglement;
  65.     /**
  66.      * @ORM\Column(name="jours_livraison", type="string", length=255, nullable=true)
  67.      */
  68.     private $joursLivraison;
  69.     /**
  70.      * @ORM\Column(name="code_comptable", type="string", length=255, nullable=true)
  71.      */
  72.     private $codeComptable;
  73.     /**
  74.      * @ORM\Column(name="donnees_import", type="text", nullable=true)
  75.      */
  76.     private $donnesImport;
  77.     /**
  78.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="fournisseurs")
  79.      * @ORM\JoinColumn(nullable=true)
  80.      */
  81.     private $utilisateur;
  82.     /**
  83.      * @ORM\Column(name="id_import", type="string",length=255, nullable=true)
  84.      */
  85.     private $idImport;
  86.     /**
  87.      * @ORM\Column(name="delai_reception", type="integer",length=255, nullable=true)
  88.      */
  89.     private $delaiReception;
  90.     /**
  91.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  92.      * @Assert\NotBlank(message="Libellé obligatoire")
  93.      */
  94.     private $libelle;
  95.     /**
  96.      * @ORM\OneToMany(targetEntity="App\Entity\Articles\ConditionAchat", mappedBy="fournisseur")
  97.     */
  98.     private $conditionsAchat;
  99.     /**
  100.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\MouvementCaisse", mappedBy="fournisseur")
  101.     */
  102.     private $mouvementsCaisse;
  103.     /**
  104.      * @ORM\Column(name="statut", type="boolean", nullable=true)
  105.      */
  106.     private $statut;
  107.     /**
  108.      * @ORM\OneToMany(targetEntity="App\Entity\Utilisateur\Contact", mappedBy="fournisseur")
  109.      */
  110.     private $contacts;
  111.     /**
  112.      * @ORM\OneToMany(targetEntity="App\Entity\Adresses\Adresse", mappedBy="fournisseur")
  113.      */
  114.     private $adresses;
  115.     /**
  116.      * @ORM\Column(name="logo", type="string", length=255, nullable=true)
  117.      */
  118.     private $logo;
  119.     /**
  120.      * @ORM\Column(name="reference", type="string", length=255, nullable=true, unique=true)
  121.      * @Assert\NotBlank(message="Référence obligatoire")
  122.      */
  123.     private $reference;
  124.     /**
  125.      * @ORM\Column(name="date", type="datetime")
  126.      */
  127.     private $date;
  128.     /**
  129.      * @ORM\Column(name="dateMaj", type="datetime", nullable=true)
  130.      * @Gedmo\Timestampable(on="update")
  131.      */
  132.     private $dateMaj;
  133.     /**
  134.      * @ORM\Column(name="telephone", type="string", length=255, nullable=true)
  135.      */
  136.     private $telephone;
  137.     /**
  138.      * @ORM\Column(name="telephone2", type="string", length=255, nullable=true)
  139.      */
  140.     private $telephone2;
  141.     /**
  142.      * @ORM\Column(name="email", type="string", length=255, nullable=true)
  143.      */
  144.     private $email;
  145.     /**
  146.      * @ORM\Column(name="site_web", type="string", length=255, nullable=true)
  147.      */
  148.     private $siteWeb;
  149.     /**
  150.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  151.      */
  152.     private $dateSuppression;
  153.     /**
  154.      * @ORM\Column(name="fax", type="string", length=255, nullable=true)
  155.      */
  156.     private $fax;
  157.     /**
  158.      * @ORM\Column(name="tva", type="string", length=255, nullable=true)
  159.      * @Assert\NotBlank(message="Fournisseur : N° tva obligatoire", groups={"articleDivers"})
  160.      */
  161.     private $tva;
  162.     /**
  163.      * @ORM\Column(name="commentaire", type="text", nullable=true)
  164.      */
  165.     private $commentaire;
  166.     /**
  167.     * @ORM\OneToMany(targetEntity="App\Entity\Articles\MouvementStock", mappedBy="fournisseur")
  168.     */
  169.     private $mouvementStocks;
  170.     /**
  171.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Reception", mappedBy="fournisseur")
  172.     */
  173.     private $receptions;
  174.     /**
  175.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\CommandeFournisseur", mappedBy="fournisseur")
  176.      */
  177.     private $commandesFournisseur;
  178.     /**
  179.     * @ORM\OneToMany(targetEntity="App\Entity\Articles\PrixAchat", cascade={"persist"},mappedBy="fournisseur")
  180.     */
  181.     private $prixAchat;
  182.     /**
  183.      * @ORM\OneToMany(targetEntity="App\Entity\Articles\Article", mappedBy="fournisseurDefaut")
  184.      * @ORM\JoinColumn(nullable=true)
  185.      */
  186.     private $articles;
  187.     /**
  188.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Devise", inversedBy="fournisseurs")
  189.      * @ORM\JoinColumn(nullable=true)
  190.      */
  191.     private $devise;
  192.     /**
  193.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Compta", cascade={"persist"},inversedBy="fournisseurs")
  194.      * @ORM\JoinColumn(nullable=true)
  195.      */
  196.     private $compta;
  197.     /**
  198.      * @ORM\Column(name="code_client", type="string", length=255, nullable=true)
  199.      */
  200.     private $codeClient;
  201.     /**
  202.      * @ORM\Column(name="minimum_facturation", type="float", nullable=true)
  203.      */
  204.     private $minimumFacturation;
  205.     /**
  206.      * @ORM\Column(name="franco", type="float", nullable=true)
  207.      */
  208.     private $franco;
  209.     /**
  210.      * @ORM\Column(name="frais_fixe", type="float", nullable=true)
  211.      */
  212.     private $fraisFixe;
  213.     /**
  214.      * @ORM\Column(name="divers", type="boolean", nullable=true)
  215.      */
  216.     private $divers;
  217.     /**
  218.      * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseurs\Fournisseur")
  219.      * @ORM\JoinColumn(nullable=true)
  220.      */
  221.     private $parent;
  222.     /**
  223.      * @ORM\Column(name="archive", type="boolean", nullable=true)
  224.      */
  225.     private $archive;
  226.     /**
  227.      * @ORM\Column(name="taux_escompte", type="float", nullable=true)
  228.      */
  229.     private $tauxEscompte;
  230.     public function __construct()
  231.     {
  232.         $this->date                 = new Datetime();
  233.         $this->retoursFournisseurs  = new ArrayCollection();
  234.         $this->litiges              = new ArrayCollection();
  235.         $this->fournisseurCategorie = new ArrayCollection();
  236.         $this->mouvementsCaisse     = new ArrayCollection();
  237.         $this->receptions           = new ArrayCollection();
  238.         $this->articles             = new ArrayCollection();
  239.         $this->conditionsAchat      = new ArrayCollection();
  240.         $this->prixAchat            = new ArrayCollection();
  241.         $this->commandesFournisseur = new ArrayCollection();
  242.         $this->mouvementStocks      = new ArrayCollection();
  243.         $this->adresses             = new ArrayCollection();
  244.         $this->contacts             = new ArrayCollection();
  245.     }
  246.     public function getId(): int
  247.     {
  248.         return $this->id;
  249.     }
  250.     public function setReference(?string $reference): Fournisseur
  251.     {
  252.         $this->reference $reference;
  253.         return $this;
  254.     }
  255.     public function getReference(): ?string
  256.     {
  257.         return $this->reference;
  258.     }
  259.     public function setDate(DateTime $date): Fournisseur
  260.     {
  261.         $this->date $date;
  262.         return $this;
  263.     }
  264.     public function getDate(): DateTime
  265.     {
  266.         return $this->date;
  267.     }
  268.     public function setDateMaj(DateTime $dateMaj): Fournisseur
  269.     {
  270.         $this->dateMaj $dateMaj;
  271.         return $this;
  272.     }
  273.     public function getDateMaj(): ?DateTime
  274.     {
  275.         return $this->dateMaj;
  276.     }
  277.     public function setTelephone(?string $telephone): Fournisseur
  278.     {
  279.         $this->telephone $telephone;
  280.         return $this;
  281.     }
  282.     public function getTelephone(): ?string
  283.     {
  284.         return $this->telephone;
  285.     }
  286.     public function setTelephone2(?string $telephone2): Fournisseur
  287.     {
  288.         $this->telephone2 $telephone2;
  289.         return $this;
  290.     }
  291.     public function getTelephone2(): ?string
  292.     {
  293.         return $this->telephone2;
  294.     }
  295.     public function setEmail(?string $email): Fournisseur
  296.     {
  297.         $this->email $email;
  298.         return $this;
  299.     }
  300.     public function getEmail(): ?string
  301.     {
  302.         return $this->email;
  303.     }
  304.     public function setDateSuppression(?DateTime $dateSuppression): Fournisseur
  305.     {
  306.         $this->dateSuppression $dateSuppression;
  307.         return $this;
  308.     }
  309.     public function getDateSuppression(): ?DateTime
  310.     {
  311.         return $this->dateSuppression;
  312.     }
  313.     public function setFax(string $fax): Fournisseur
  314.     {
  315.         $this->fax $fax;
  316.         return $this;
  317.     }
  318.     public function getFax(): ?string
  319.     {
  320.         return $this->fax;
  321.     }
  322.     public function setTva(?string $tva): Fournisseur
  323.     {
  324.         $this->tva $tva;
  325.         return $this;
  326.     }
  327.     public function getTva(): ?string
  328.     {
  329.         return $this->tva;
  330.     }
  331.     public function getContactAutre(): ?string
  332.     {
  333.         return $this->contactAutre;
  334.     }
  335.     public function setCommentaire(?string $commentaire): Fournisseur
  336.     {
  337.         $this->commentaire $commentaire;
  338.         return $this;
  339.     }
  340.     public function getCommentaire(): ?string
  341.     {
  342.         return $this->commentaire;
  343.     }
  344.     public function setUtilisateur(?Utilisateur $utilisateur): Fournisseur
  345.     {
  346.         $this->utilisateur $utilisateur;
  347.         return $this;
  348.     }
  349.     public function getUtilisateur(): ?Utilisateur
  350.     {
  351.         return $this->utilisateur;
  352.     }
  353.     public function setLogo(?string $logo): ?string
  354.     {
  355.         $this->logo $logo;
  356.         return $this;
  357.     }
  358.     public function getLogo(): ?string
  359.     {
  360.         return $this->logo;
  361.     }
  362.     public function getLogoDir(): string
  363.     {
  364.         return 'uploads/logos/fournisseur';
  365.     }
  366.     public function addContact(contact $contacts): Fournisseur
  367.     {
  368.         $this->contacts[] = $contacts;
  369.         return $this;
  370.     }
  371.     public function removeContact(contact $contacts)
  372.     {
  373.         $this->contacts->removeElement($contacts);
  374.     }
  375.     public function getContacts(): Collection
  376.     {
  377.         return $this->contacts;
  378.     }
  379.     public function addAdress(Adresse $adresses): Fournisseur
  380.     {
  381.         $this->adresses[] = $adresses;
  382.         return $this;
  383.     }
  384.     public function removeAdress(Adresse $adresses)
  385.     {
  386.         $this->adresses->removeElement($adresses);
  387.     }
  388.     public function getAdresses(): Collection
  389.     {
  390.         return $this->adresses;
  391.     }
  392.     public function addMouvementStock(MouvementStock $mouvementStocks): Fournisseur
  393.     {
  394.         $this->mouvementStocks[] = $mouvementStocks;
  395.         return $this;
  396.     }
  397.     public function removeMouvementStock(MouvementStock $mouvementStocks)
  398.     {
  399.         $this->mouvementStocks->removeElement($mouvementStocks);
  400.     }
  401.     public function getMouvementStocks(): Collection
  402.     {
  403.         return $this->mouvementStocks;
  404.     }
  405.     public function setLibelle(?string $libelle): Fournisseur
  406.     {
  407.         $this->libelle $libelle;
  408.         return $this;
  409.     }
  410.     public function getLibelle(): ?string
  411.     {
  412.         return $this->libelle;
  413.     }
  414.     public function setStatut(?bool $statut): Fournisseur
  415.     {
  416.         $this->statut $statut;
  417.         return $this;
  418.     }
  419.     public function getStatut(): ?bool
  420.     {
  421.         return $this->statut;
  422.     }
  423.     public function addCommandesFournisseur(CommandeFournisseur $commandesFournisseur): Fournisseur
  424.     {
  425.         $this->commandesFournisseur[] = $commandesFournisseur;
  426.         return $this;
  427.     }
  428.     public function removeCommandesFournisseur(CommandeFournisseur $commandesFournisseur)
  429.     {
  430.         $this->commandesFournisseur->removeElement($commandesFournisseur);
  431.     }
  432.     public function getCommandesFournisseur(): Collection
  433.     {
  434.         return $this->commandesFournisseur;
  435.     }
  436.     public function addPrixAchat(prixAchat $prixAchat): Fournisseur
  437.     {
  438.         $this->prixAchat[] = $prixAchat;
  439.         return $this;
  440.     }
  441.     public function removePrixAchat(prixAchat $prixAchat)
  442.     {
  443.         $this->prixAchat->removeElement($prixAchat);
  444.     }
  445.     public function getPrixAchat(): Collection
  446.     {
  447.         return $this->prixAchat;
  448.     }
  449.     public function __toString()
  450.     {
  451.         return $this->libelle.' ('.$this->reference.')';
  452.     }
  453.     public function addConditionsAchat(ConditionAchat $conditionsAchat): Fournisseur
  454.     {
  455.         $this->conditionsAchat[] = $conditionsAchat;
  456.         return $this;
  457.     }
  458.     public function removeConditionsAchat(ConditionAchat $conditionsAchat)
  459.     {
  460.         $this->conditionsAchat->removeElement($conditionsAchat);
  461.     }
  462.     public function getConditionsAchat(): Collection
  463.     {
  464.         return $this->conditionsAchat;
  465.     }
  466.     public function addArticle(Article $articles): Fournisseur
  467.     {
  468.         $this->articles[] = $articles;
  469.         return $this;
  470.     }
  471.     public function removeArticle(Article $articles)
  472.     {
  473.         $this->articles->removeElement($articles);
  474.     }
  475.     public function getArticles(): Collection
  476.     {
  477.         return $this->articles;
  478.     }
  479.     public function setIdImport(?string $idImport): Fournisseur
  480.     {
  481.         $this->idImport $idImport;
  482.         return $this;
  483.     }
  484.     public function getIdImport(): ?string
  485.     {
  486.         return $this->idImport;
  487.     }
  488.     public function setCategorie(?Categorie $categorie): Fournisseur
  489.     {
  490.         $this->categorie $categorie;
  491.         return $this;
  492.     }
  493.     public function getCategorie(): ?Categorie
  494.     {
  495.         return $this->categorie;
  496.     }
  497.     public function setDonnesImport(?string $donnesImport): Fournisseur
  498.     {
  499.         $this->donnesImport $donnesImport;
  500.         return $this;
  501.     }
  502.     public function getDonnesImport(): ?string
  503.     {
  504.         return $this->donnesImport;
  505.     }
  506.     public function setTauxChange(float $tauxChange): Fournisseur
  507.     {
  508.         $this->tauxChange $tauxChange;
  509.         return $this;
  510.     }
  511.     public function getTauxChange(): float
  512.     {
  513.         return $this->tauxChange;
  514.     }
  515.     public function setDevise(?Devise $devise): Fournisseur
  516.     {
  517.         $this->devise $devise;
  518.         return $this;
  519.     }
  520.     public function getDevise(): ?Devise
  521.     {
  522.         return $this->devise;
  523.     }
  524.     public function setCodeComptable(?string $codeComptable): Fournisseur
  525.     {
  526.         $this->codeComptable $codeComptable;
  527.         return $this;
  528.     }
  529.     public function getCodeComptable(): ?string
  530.     {
  531.         return $this->codeComptable;
  532.     }
  533.     public function setCompta(?Compta $compta): Fournisseur
  534.     {
  535.         $this->compta $compta;
  536.         return $this;
  537.     }
  538.     public function getCompta(): ?Compta
  539.     {
  540.         return $this->compta;
  541.     }
  542.     public function addReception(Reception $reception): Fournisseur
  543.     {
  544.         $this->receptions[] = $reception;
  545.         return $this;
  546.     }
  547.     public function removeReception(Reception $reception)
  548.     {
  549.         $this->receptions->removeElement($reception);
  550.     }
  551.     public function getReceptions(): Collection
  552.     {
  553.         return $this->receptions;
  554.     }
  555.     public function setCodeClient(?string $codeClient): Fournisseur
  556.     {
  557.         $this->codeClient $codeClient;
  558.         return $this;
  559.     }
  560.     public function getCodeClient(): ?string
  561.     {
  562.         return $this->codeClient;
  563.     }
  564.     public function setFranco(?float $franco): Fournisseur
  565.     {
  566.         $this->franco $franco;
  567.         return $this;
  568.     }
  569.     public function getFranco(): ?float
  570.     {
  571.         return $this->franco;
  572.     }
  573.     public function setFraisFixe(?float $fraisFixe): Fournisseur
  574.     {
  575.         $this->fraisFixe $fraisFixe;
  576.         return $this;
  577.     }
  578.     public function getFraisFixe(): ?float
  579.     {
  580.         return $this->fraisFixe;
  581.     }
  582.     public function setMinimumFacturation(?float $minimumFacturation): Fournisseur
  583.     {
  584.         $this->minimumFacturation $minimumFacturation;
  585.         return $this;
  586.     }
  587.     public function getMinimumFacturation():?float
  588.     {
  589.         return $this->minimumFacturation;
  590.     }
  591.     public function setModereglement(?ModeReglement $modereglement): Fournisseur
  592.     {
  593.         $this->modereglement $modereglement;
  594.         return $this;
  595.     }
  596.     public function getModereglement(): ?ModeReglement
  597.     {
  598.         return $this->modereglement;
  599.     }
  600.     public function setDivers(?bool $divers): Fournisseur
  601.     {
  602.         $this->divers $divers;
  603.         return $this;
  604.     }
  605.     public function getDivers(): ?bool
  606.     {
  607.         return $this->divers;
  608.     }
  609.     public function setParent(?Fournisseur $parent): Fournisseur
  610.     {
  611.         $this->parent $parent;
  612.         return $this;
  613.     }
  614.     public function getParent(): ?Fournisseur
  615.     {
  616.         return $this->parent;
  617.     }
  618.     public function addMouvementsCaisse(MouvementCaisse $mouvementsCaisse): Fournisseur
  619.     {
  620.         $this->mouvementsCaisse[] = $mouvementsCaisse;
  621.         return $this;
  622.     }
  623.     public function removeMouvementsCaisse(MouvementCaisse $mouvementsCaisse)
  624.     {
  625.         $this->mouvementsCaisse->removeElement($mouvementsCaisse);
  626.     }
  627.     public function getMouvementsCaisse(): Collection
  628.     {
  629.         return $this->mouvementsCaisse;
  630.     }
  631.     public function setDelaiReception(?int $delaiReception): Fournisseur
  632.     {
  633.         $this->delaiReception $delaiReception;
  634.         return $this;
  635.     }
  636.     public function getDelaiReception(): ?int
  637.     {
  638.         return $this->delaiReception;
  639.     }
  640.     public function addFournisseurCategorie(FournisseurCategorie $fournisseurCategorie): Fournisseur
  641.     {
  642.         $this->fournisseurCategorie[] = $fournisseurCategorie;
  643.         return $this;
  644.     }
  645.     public function removeFournisseurCategorie(FournisseurCategorie $fournisseurCategorie)
  646.     {
  647.         $this->fournisseurCategorie->removeElement($fournisseurCategorie);
  648.     }
  649.     public function getFournisseurCategorie(): Collection
  650.     {
  651.         return $this->fournisseurCategorie;
  652.     }
  653.     public function addLitige(Litige $litige): Fournisseur
  654.     {
  655.         $this->litiges[] = $litige;
  656.         return $this;
  657.     }
  658.     public function removeLitige(Litige $litige)
  659.     {
  660.         $this->litiges->removeElement($litige);
  661.     }
  662.     public function getLitiges(): Collection
  663.     {
  664.         return $this->litiges;
  665.     }
  666.     public function addRetoursFournisseur(RetourFournisseur $retoursFournisseur): Fournisseur
  667.     {
  668.         $this->retoursFournisseurs[] = $retoursFournisseur;
  669.         return $this;
  670.     }
  671.     public function removeRetoursFournisseur(RetourFournisseur $retoursFournisseur)
  672.     {
  673.         $this->retoursFournisseurs->removeElement($retoursFournisseur);
  674.     }
  675.     public function getRetoursFournisseurs(): Collection
  676.     {
  677.         return $this->retoursFournisseurs;
  678.     }
  679.     public function setJoursLivraison(?string $joursLivraison): Fournisseur
  680.     {
  681.         $this->joursLivraison $joursLivraison;
  682.         return $this;
  683.     }
  684.     public function getJoursLivraison(): ?array
  685.     {
  686.         return unserialize($this->joursLivraison);
  687.         //return $this->joursLivraison;
  688.     }
  689.     public function setSiteWeb(?string $siteWeb): Fournisseur
  690.     {
  691.         $this->siteWeb $siteWeb;
  692.         return $this;
  693.     }
  694.     public function getSiteWeb(): ?string
  695.     {
  696.         return $this->siteWeb;
  697.     }
  698.     public function setArchive(?bool $archive): Fournisseur
  699.     {
  700.         $this->archive $archive;
  701.         return $this;
  702.     }
  703.     public function getArchive(): ?bool
  704.     {
  705.         return $this->archive;
  706.     }
  707.     public function setTauxEscompte(?float $tauxEscompte): Fournisseur
  708.     {
  709.         $this->tauxEscompte $tauxEscompte;
  710.         return $this;
  711.     }
  712.     public function getTauxEscompte(): ?float
  713.     {
  714.         return $this->tauxEscompte;
  715.     }
  716. }