src/Entity/Gestiondestock.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GestiondestockRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassGestiondestockRepository::class)]
  9. class Gestiondestock
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $num null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $date null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $totaleqte null;
  21.     #[ORM\OneToMany(targetEntityArticlegestion::class, mappedBy'gestiondestock'cascade: ["remove""persist"])]
  22.     private Collection $articlegestions;
  23.     #[ORM\ManyToOne(inversedBy'gestiondestocks')]
  24.     private ?Produits $produit null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $IsArchive null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $societe null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $totaletva null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $totalettc null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $totaleht null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $titer null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $image null;
  39.     #[ORM\OneToMany(targetEntityArticlefichetechnique::class, mappedBy'gestiondestock')]
  40.     private Collection $articlefichetechniques;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $typeClient null;
  43.     #[ORM\OneToMany(targetEntityBonDeLivraison::class, mappedBy'gestiondestock')]
  44.     private Collection $bonDeLivraisons;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $prixhtvente null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $tva null;
  49.     #[ORM\Column(length255nullabletrue)]
  50.     private ?string $prixttcvente null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $totalstock null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $totalerouleaux null;
  55.     #[ORM\Column(length255nullabletrue)]
  56.     private ?string $nbroleaux null;
  57.     public function __toString(): string
  58.     {
  59.         return (string) $this->id// Ou une autre valeur unique
  60.     }
  61.     public function __construct()
  62.     {
  63.         $this->articlegestions = new ArrayCollection();
  64.         $this->articlefichetechniques = new ArrayCollection();
  65.         $this->bonDeLivraisons = new ArrayCollection();
  66.     }
  67.     public function getId(): ?int
  68.     {
  69.         return $this->id;
  70.     }
  71.     public function getNum(): ?string
  72.     {
  73.         return $this->num;
  74.     }
  75.     public function setNum(?string $num): static
  76.     {
  77.         $this->num $num;
  78.         return $this;
  79.     }
  80.     public function getDate(): ?\DateTimeInterface
  81.     {
  82.         return $this->date;
  83.     }
  84.     public function setDate(\DateTimeInterface $date): static
  85.     {
  86.         $this->date $date;
  87.         return $this;
  88.     }
  89.     public function getTotaleqte(): ?string
  90.     {
  91.         return $this->totaleqte;
  92.     }
  93.     public function setTotaleqte(?string $totaleqte): static
  94.     {
  95.         $this->totaleqte $totaleqte;
  96.         return $this;
  97.     }
  98.     /**
  99.      * @return Collection<int, Articlegestion>
  100.      */
  101.     public function getArticlegestions(): Collection
  102.     {
  103.         return $this->articlegestions;
  104.     }
  105.     public function addArticlegestion(Articlegestion $articlegestion): static
  106.     {
  107.         if (!$this->articlegestions->contains($articlegestion)) {
  108.             $this->articlegestions->add($articlegestion);
  109.             $articlegestion->setGestiondestock($this);
  110.         }
  111.         return $this;
  112.     }
  113.     public function removeArticlegestion(Articlegestion $articlegestion): static
  114.     {
  115.         if ($this->articlegestions->removeElement($articlegestion)) {
  116.             // set the owning side to null (unless already changed)
  117.             if ($articlegestion->getGestiondestock() === $this) {
  118.                 $articlegestion->setGestiondestock(null);
  119.             }
  120.         }
  121.         return $this;
  122.     }
  123.     public function getProduit(): ?Produits
  124.     {
  125.         return $this->produit;
  126.     }
  127.     public function setProduit(?Produits $produit): static
  128.     {
  129.         $this->produit $produit;
  130.         return $this;
  131.     }
  132.     public function isIsArchive(): ?bool
  133.     {
  134.         return $this->IsArchive;
  135.     }
  136.     public function setIsArchive(bool $IsArchive): static
  137.     {
  138.         $this->IsArchive $IsArchive;
  139.         return $this;
  140.     }
  141.     public function getSociete(): ?string
  142.     {
  143.         return $this->societe;
  144.     }
  145.     public function setSociete(?string $societe): static
  146.     {
  147.         $this->societe $societe;
  148.         return $this;
  149.     }
  150.     public function getTotaletva(): ?string
  151.     {
  152.         return $this->totaletva;
  153.     }
  154.     public function setTotaletva(?string $totaletva): static
  155.     {
  156.         $this->totaletva $totaletva;
  157.         return $this;
  158.     }
  159.     public function getTotalettc(): ?string
  160.     {
  161.         return $this->totalettc;
  162.     }
  163.     public function setTotalettc(?string $totalettc): static
  164.     {
  165.         $this->totalettc $totalettc;
  166.         return $this;
  167.     }
  168.     public function getTotaleht(): ?string
  169.     {
  170.         return $this->totaleht;
  171.     }
  172.     public function setTotaleht(?string $totaleht): static
  173.     {
  174.         $this->totaleht $totaleht;
  175.         return $this;
  176.     }
  177.     public function getTiter(): ?string
  178.     {
  179.         return $this->titer;
  180.     }
  181.     public function setTiter(?string $titer): static
  182.     {
  183.         $this->titer $titer;
  184.         return $this;
  185.     }
  186.     public function getImage(): ?string
  187.     {
  188.         return $this->image;
  189.     }
  190.     public function setImage(?string $image): static
  191.     {
  192.         $this->image $image;
  193.         return $this;
  194.     }
  195.     /**
  196.      * @return Collection<int, Articlefichetechnique>
  197.      */
  198.     public function getArticlefichetechniques(): Collection
  199.     {
  200.         return $this->articlefichetechniques;
  201.     }
  202.     public function addArticlefichetechnique(Articlefichetechnique $articlefichetechnique): static
  203.     {
  204.         if (!$this->articlefichetechniques->contains($articlefichetechnique)) {
  205.             $this->articlefichetechniques->add($articlefichetechnique);
  206.             $articlefichetechnique->setGestiondestock($this);
  207.         }
  208.         return $this;
  209.     }
  210.     public function removeArticlefichetechnique(Articlefichetechnique $articlefichetechnique): static
  211.     {
  212.         if ($this->articlefichetechniques->removeElement($articlefichetechnique)) {
  213.             // set the owning side to null (unless already changed)
  214.             if ($articlefichetechnique->getGestiondestock() === $this) {
  215.                 $articlefichetechnique->setGestiondestock(null);
  216.             }
  217.         }
  218.         return $this;
  219.     }
  220.     public function getTypeClient(): ?string
  221.     {
  222.         return $this->typeClient;
  223.     }
  224.     public function setTypeClient(?string $typeClient): static
  225.     {
  226.         $this->typeClient $typeClient;
  227.         return $this;
  228.     }
  229.     /**
  230.      * @return Collection<int, BonDeLivraison>
  231.      */
  232.     public function getBonDeLivraisons(): Collection
  233.     {
  234.         return $this->bonDeLivraisons;
  235.     }
  236.     public function addBonDeLivraison(BonDeLivraison $bonDeLivraison): static
  237.     {
  238.         if (!$this->bonDeLivraisons->contains($bonDeLivraison)) {
  239.             $this->bonDeLivraisons->add($bonDeLivraison);
  240.             $bonDeLivraison->setGestiondestock($this);
  241.         }
  242.         return $this;
  243.     }
  244.     public function removeBonDeLivraison(BonDeLivraison $bonDeLivraison): static
  245.     {
  246.         if ($this->bonDeLivraisons->removeElement($bonDeLivraison)) {
  247.             // set the owning side to null (unless already changed)
  248.             if ($bonDeLivraison->getGestiondestock() === $this) {
  249.                 $bonDeLivraison->setGestiondestock(null);
  250.             }
  251.         }
  252.         return $this;
  253.     }
  254.     public function getPrixhtvente(): ?string
  255.     {
  256.         return $this->prixhtvente;
  257.     }
  258.     public function setPrixhtvente(?string $prixhtvente): static
  259.     {
  260.         $this->prixhtvente $prixhtvente;
  261.         return $this;
  262.     }
  263.     public function getTva(): ?string
  264.     {
  265.         return $this->tva;
  266.     }
  267.     public function setTva(?string $tva): static
  268.     {
  269.         $this->tva $tva;
  270.         return $this;
  271.     }
  272.     public function getPrixttcvente(): ?string
  273.     {
  274.         return $this->prixttcvente;
  275.     }
  276.     public function setPrixttcvente(?string $prixttcvente): static
  277.     {
  278.         $this->prixttcvente $prixttcvente;
  279.         return $this;
  280.     }
  281.     public function getTotalstock(): ?string
  282.     {
  283.         return $this->totalstock;
  284.     }
  285.     public function setTotalstock(?string $totalstock): static
  286.     {
  287.         $this->totalstock $totalstock;
  288.         return $this;
  289.     }
  290.     public function getTotalerouleaux(): ?string
  291.     {
  292.         return $this->totalerouleaux;
  293.     }
  294.     public function setTotalerouleaux(?string $totalerouleaux): static
  295.     {
  296.         $this->totalerouleaux $totalerouleaux;
  297.         return $this;
  298.     }
  299.     public function getNbroleaux(): ?string
  300.     {
  301.         return $this->nbroleaux;
  302.     }
  303.     public function setNbroleaux(?string $nbroleaux): static
  304.     {
  305.         $this->nbroleaux $nbroleaux;
  306.         return $this;
  307.     }
  308. }