src/Entity/Filieres.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FilieresRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFilieresRepository::class)]
  8. class Filieres
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(nullabletrue)]
  15.     private ?int $societe null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?int $regroupe_stat null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?int $commande_par null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?int $affilie_stat null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?int $sous_affilie_stat null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?int $compte_client_livre null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $nom null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $enseigne null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $rue null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $localite null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $ptt null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $ville null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $mail null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $code_imputation null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $type_tva null;
  44.     #[ORM\Column(nullabletrue)]
  45.     private ?float $taux_tva null;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $type_adresse null;
  48.     #[ORM\Column(length1nullabletrue)]
  49.     private ?string $annule null;
  50.     #[ORM\ManyToOne(inversedBy'filieres')]
  51.     private ?Pays $pays null;
  52.     #[ORM\OneToMany(mappedBy'code_regroupement'targetEntityBudget::class)]
  53.     private Collection $budgets;
  54.     #[ORM\OneToMany(mappedBy'livrea'targetEntityCommande::class)]
  55.     private Collection $commandes;
  56.     #[ORM\OneToMany(mappedBy'livrea'targetEntityCommande400::class)]
  57.     private Collection $commande400s;
  58.     #[ORM\OneToMany(mappedBy'filiere'targetEntityCommande400::class)]
  59.     private Collection $commande400a;
  60.     #[ORM\OneToMany(mappedBy'filiere'targetEntityCommande::class)]
  61.     private Collection $commandea;
  62.     public function __construct()
  63.     {
  64.         $this->budgets = new ArrayCollection();
  65.         $this->commandes = new ArrayCollection();
  66.         $this->commande400s = new ArrayCollection();
  67.         $this->commande400a = new ArrayCollection();
  68.         $this->commandea = new ArrayCollection();
  69.     }
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getSociete(): ?int
  75.     {
  76.         return $this->societe;
  77.     }
  78.     public function setSociete(?int $societe): self
  79.     {
  80.         $this->societe $societe;
  81.         return $this;
  82.     }
  83.     public function getRegroupeStat(): ?int
  84.     {
  85.         return $this->regroupe_stat;
  86.     }
  87.     public function setRegroupeStat(?int $regroupe_stat): self
  88.     {
  89.         $this->regroupe_stat $regroupe_stat;
  90.         return $this;
  91.     }
  92.     public function getCommandePar(): ?int
  93.     {
  94.         return $this->commande_par;
  95.     }
  96.     public function setCommandePar(?int $commande_par): self
  97.     {
  98.         $this->commande_par $commande_par;
  99.         return $this;
  100.     }
  101.     public function getAffilieStat(): ?int
  102.     {
  103.         return $this->affilie_stat;
  104.     }
  105.     public function setAffilieStat(?int $affilie_stat): self
  106.     {
  107.         $this->affilie_stat $affilie_stat;
  108.         return $this;
  109.     }
  110.     public function getSousAffilieStat(): ?int
  111.     {
  112.         return $this->sous_affilie_stat;
  113.     }
  114.     public function setSousAffilieStat(int $sous_affilie_stat): self
  115.     {
  116.         $this->sous_affilie_stat $sous_affilie_stat;
  117.         return $this;
  118.     }
  119.     public function getCompteClientLivre(): ?int
  120.     {
  121.         return $this->compte_client_livre;
  122.     }
  123.     public function setCompteClientLivre(?int $compte_client_livre): self
  124.     {
  125.         $this->compte_client_livre $compte_client_livre;
  126.         return $this;
  127.     }
  128.     public function getNom(): ?string
  129.     {
  130.         return $this->nom;
  131.     }
  132.     public function setNom(?string $nom): self
  133.     {
  134.         $this->nom $nom;
  135.         return $this;
  136.     }
  137.     public function getEnseigne(): ?string
  138.     {
  139.         return $this->enseigne;
  140.     }
  141.     public function setEnseigne(?string $enseigne): self
  142.     {
  143.         $this->enseigne $enseigne;
  144.         return $this;
  145.     }
  146.     public function getRue(): ?string
  147.     {
  148.         return $this->rue;
  149.     }
  150.     public function setRue(?string $rue): self
  151.     {
  152.         $this->rue $rue;
  153.         return $this;
  154.     }
  155.     public function getLocalite(): ?string
  156.     {
  157.         return $this->localite;
  158.     }
  159.     public function setLocalite(?string $localite): self
  160.     {
  161.         $this->localite $localite;
  162.         return $this;
  163.     }
  164.     public function getPtt(): ?string
  165.     {
  166.         return $this->ptt;
  167.     }
  168.     public function setPtt(?string $ptt): self
  169.     {
  170.         $this->ptt $ptt;
  171.         return $this;
  172.     }
  173.     public function getVille(): ?string
  174.     {
  175.         return $this->ville;
  176.     }
  177.     public function setVille(?string $ville): self
  178.     {
  179.         $this->ville $ville;
  180.         return $this;
  181.     }
  182.     public function getMail(): ?string
  183.     {
  184.         return $this->mail;
  185.     }
  186.     public function setMail(?string $mail): self
  187.     {
  188.         $this->mail $mail;
  189.         return $this;
  190.     }
  191.     public function getCodeImputation(): ?string
  192.     {
  193.         return $this->code_imputation;
  194.     }
  195.     public function setCodeImputation(?string $code_imputation): self
  196.     {
  197.         $this->code_imputation $code_imputation;
  198.         return $this;
  199.     }
  200.     public function getTypeTva(): ?string
  201.     {
  202.         return $this->type_tva;
  203.     }
  204.     public function setTypeTva(?string $type_tva): self
  205.     {
  206.         $this->type_tva $type_tva;
  207.         return $this;
  208.     }
  209.     public function getTauxTva(): ?float
  210.     {
  211.         return $this->taux_tva;
  212.     }
  213.     public function setTauxTva(?float $taux_tva): self
  214.     {
  215.         $this->taux_tva $taux_tva;
  216.         return $this;
  217.     }
  218.     public function getTypeAdresse(): ?string
  219.     {
  220.         return $this->type_adresse;
  221.     }
  222.     public function setTypeAdresse(?string $type_adresse): self
  223.     {
  224.         $this->type_adresse $type_adresse;
  225.         return $this;
  226.     }
  227.     public function getAnnule(): ?string
  228.     {
  229.         return $this->annule;
  230.     }
  231.     public function setAnnule(?string $annule): self
  232.     {
  233.         $this->annule $annule;
  234.         return $this;
  235.     }
  236.     public function getIdPays(): ?Pays
  237.     {
  238.         return $this->pays;
  239.     }
  240.     public function setIdPays(?Pays $pays): self
  241.     {
  242.         $this->pays $pays;
  243.         return $this;
  244.     }
  245.     /**
  246.      * @return Collection<int, Budget>
  247.      */
  248.     public function getBudgets(): Collection
  249.     {
  250.         return $this->budgets;
  251.     }
  252.     public function addBudget(Budget $budget): self
  253.     {
  254.         if (!$this->budgets->contains($budget)) {
  255.             $this->budgets->add($budget);
  256.             $budget->setCodeRegroupement($this);
  257.         }
  258.         return $this;
  259.     }
  260.     public function removeBudget(Budget $budget): self
  261.     {
  262.         if ($this->budgets->removeElement($budget)) {
  263.             // set the owning side to null (unless already changed)
  264.             if ($budget->getCodeRegroupement() === $this) {
  265.                 $budget->setCodeRegroupement(null);
  266.             }
  267.         }
  268.         return $this;
  269.     }
  270.     /**
  271.      * @return Collection<int, Commande>
  272.      */
  273.     public function getCommandes(): Collection
  274.     {
  275.         return $this->commandes;
  276.     }
  277.     public function addCommande(Commande $commande): self
  278.     {
  279.         if (!$this->commandes->contains($commande)) {
  280.             $this->commandes->add($commande);
  281.             $commande->setLivrea($this);
  282.         }
  283.         return $this;
  284.     }
  285.     public function removeCommande(Commande $commande): self
  286.     {
  287.         if ($this->commandes->removeElement($commande)) {
  288.             // set the owning side to null (unless already changed)
  289.             if ($commande->getLivrea() === $this) {
  290.                 $commande->setLivrea(null);
  291.             }
  292.         }
  293.         return $this;
  294.     }
  295.     /**
  296.      * @return Collection<int, Commande400>
  297.      */
  298.     public function getCommande400s(): Collection
  299.     {
  300.         return $this->commande400s;
  301.     }
  302.     public function addCommande400(Commande400 $commande400): self
  303.     {
  304.         if (!$this->commande400s->contains($commande400)) {
  305.             $this->commande400s->add($commande400);
  306.             $commande400->setLivrea($this);
  307.         }
  308.         return $this;
  309.     }
  310.     public function removeCommande400(Commande400 $commande400): self
  311.     {
  312.         if ($this->commande400s->removeElement($commande400)) {
  313.             // set the owning side to null (unless already changed)
  314.             if ($commande400->getLivrea() === $this) {
  315.                 $commande400->setLivrea(null);
  316.             }
  317.         }
  318.         return $this;
  319.     }
  320.     /**
  321.      * @return Collection<int, Commande400>
  322.      */
  323.     public function getCommande400a(): Collection
  324.     {
  325.         return $this->commande400a;
  326.     }
  327.     public function addCommande400a(Commande400 $commande400a): self
  328.     {
  329.         if (!$this->commande400a->contains($commande400a)) {
  330.             $this->commande400a->add($commande400a);
  331.             $commande400a->setFiliere($this);
  332.         }
  333.         return $this;
  334.     }
  335.     public function removeCommande400a(Commande400 $commande400a): self
  336.     {
  337.         if ($this->commande400a->removeElement($commande400a)) {
  338.             // set the owning side to null (unless already changed)
  339.             if ($commande400a->getFiliere() === $this) {
  340.                 $commande400a->setFiliere(null);
  341.             }
  342.         }
  343.         return $this;
  344.     }
  345.     /**
  346.      * @return Collection<int, Commande>
  347.      */
  348.     public function getCommandea(): Collection
  349.     {
  350.         return $this->commandea;
  351.     }
  352.     public function addCommandea(Commande $commandea): self
  353.     {
  354.         if (!$this->commandea->contains($commandea)) {
  355.             $this->commandea->add($commandea);
  356.             $commandea->setFiliere($this);
  357.         }
  358.         return $this;
  359.     }
  360.     public function removeCommandea(Commande $commandea): self
  361.     {
  362.         if ($this->commandea->removeElement($commandea)) {
  363.             // set the owning side to null (unless already changed)
  364.             if ($commandea->getFiliere() === $this) {
  365.                 $commandea->setFiliere(null);
  366.             }
  367.         }
  368.         return $this;
  369.     }
  370. }