src/Entity/Famillesdarticles.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FamillesdarticlesRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFamillesdarticlesRepository::class)]
  8. class Famillesdarticles
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrueuniquetrue)]
  15.     private ?string $reference null;
  16.     #[ORM\ManyToOne(inversedBy'famillesdarticles')]
  17.     private ?Fournisseur $fournisseur null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $prixachat null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $coefficient null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $prixvente null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $qunatity null;
  26.     #[ORM\ManyToOne(inversedBy'amillesdarticles')]
  27.     private ?Familles $familles null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $tva null;
  30.     #[ORM\ManyToMany(targetEntityGestionmachines::class, mappedBy'famillesdarticles')]
  31.     private Collection $gestionmachines;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $unite null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $designation null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $operateur null;
  38.     #[ORM\OneToMany(mappedBy'famillesdarticles'targetEntityArchivearticle::class, cascade: ["remove"])]
  39.     private Collection $archivearticle;
  40.     #[ORM\ManyToMany(targetEntityImportdirect::class, mappedBy'accarticle')]
  41.     private Collection $importdirects;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $logo null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $prixttc null;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $ngp null;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $qtetotal null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $qtenf null;
  52.     #[ORM\OneToMany(mappedBy'produit'targetEntityArticleficheachatnf::class)]
  53.     private Collection $articleficheachatnfs;
  54.     public function __construct()
  55.     {
  56.         $this->gestionmachines = new ArrayCollection();
  57.         $this->archivearticle = new ArrayCollection();
  58.         $this->importdirects = new ArrayCollection();
  59.         $this->articleficheachatnfs = new ArrayCollection();
  60.     }
  61.     public function __toString()
  62.     {
  63.         return $this->getReference(); // Remplacez "getName()" par la méthode ou la propriété appropriée
  64.     }
  65.     public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getReference(): ?string
  70.     {
  71.         return $this->reference;
  72.     }
  73.     public function setReference(?string $reference): self
  74.     {
  75.         $this->reference $reference;
  76.         return $this;
  77.     }
  78.     public function getFournisseur(): ?Fournisseur
  79.     {
  80.         return $this->fournisseur;
  81.     }
  82.     public function setFournisseur(?Fournisseur $fournisseur): self
  83.     {
  84.         $this->fournisseur $fournisseur;
  85.         return $this;
  86.     }
  87.     public function getPrixachat(): ?string
  88.     {
  89.         return $this->prixachat;
  90.     }
  91.     public function setPrixachat(?string $prixachat): self
  92.     {
  93.         $this->prixachat $prixachat;
  94.         return $this;
  95.     }
  96.     public function getCoefficient(): ?string
  97.     {
  98.         return $this->coefficient;
  99.     }
  100.     public function setCoefficient(?string $coefficient): self
  101.     {
  102.         $this->coefficient $coefficient;
  103.         return $this;
  104.     }
  105.     public function getPrixvente(): ?string
  106.     {
  107.         return $this->prixvente;
  108.     }
  109.     public function setPrixvente(?string $prixvente): self
  110.     {
  111.         $this->prixvente $prixvente;
  112.         return $this;
  113.     }
  114.     public function getQunatity(): ?string
  115.     {
  116.         return $this->qunatity;
  117.     }
  118.     public function setQunatity(?string $qunatity): self
  119.     {
  120.         $this->qunatity $qunatity;
  121.         return $this;
  122.     }
  123.     public function getFamilles(): ?Familles
  124.     {
  125.         return $this->familles;
  126.     }
  127.     public function setFamilles(?Familles $familles): self
  128.     {
  129.         $this->familles $familles;
  130.         return $this;
  131.     }
  132.     public function getTva(): ?string
  133.     {
  134.         return $this->tva;
  135.     }
  136.     public function setTva(?string $tva): self
  137.     {
  138.         $this->tva $tva;
  139.         return $this;
  140.     }
  141.     /**
  142.      * @return Collection<int, Gestionmachines>
  143.      */
  144.     public function getGestionmachines(): Collection
  145.     {
  146.         return $this->gestionmachines;
  147.     }
  148.     public function addGestionmachine(Gestionmachines $gestionmachine): self
  149.     {
  150.         if (!$this->gestionmachines->contains($gestionmachine)) {
  151.             $this->gestionmachines->add($gestionmachine);
  152.             $gestionmachine->addFamillesdarticle($this);
  153.         }
  154.         return $this;
  155.     }
  156.     public function removeGestionmachine(Gestionmachines $gestionmachine): self
  157.     {
  158.         if ($this->gestionmachines->removeElement($gestionmachine)) {
  159.             $gestionmachine->removeFamillesdarticle($this);
  160.         }
  161.         return $this;
  162.     }
  163.     public function getUnite(): ?string
  164.     {
  165.         return $this->unite;
  166.     }
  167.     public function setUnite(?string $unite): self
  168.     {
  169.         $this->unite $unite;
  170.         return $this;
  171.     }
  172.     public function getDesignation(): ?string
  173.     {
  174.         return $this->designation;
  175.     }
  176.     public function setDesignation(?string $designation): static
  177.     {
  178.         $this->designation $designation;
  179.         return $this;
  180.     }
  181.     public function getOperateur(): ?string
  182.     {
  183.         return $this->operateur;
  184.     }
  185.     public function setOperateur(?string $operateur): static
  186.     {
  187.         $this->operateur $operateur;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, Archivearticle>
  192.      */
  193.     public function getArchivearticle(): Collection
  194.     {
  195.         return $this->archivearticle;
  196.     }
  197.     public function addArchivearticle(Archivearticle $archivearticle): static
  198.     {
  199.         if (!$this->archivearticle->contains($archivearticle)) {
  200.             $this->archivearticle->add($archivearticle);
  201.             $archivearticle->setFamillesdarticles($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeArchivearticle(Archivearticle $archivearticle): static
  206.     {
  207.         if ($this->archivearticle->removeElement($archivearticle)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($archivearticle->getFamillesdarticles() === $this) {
  210.                 $archivearticle->setFamillesdarticles(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215.     /**
  216.      * @return Collection<int, Importdirect>
  217.      */
  218.     public function getImportdirects(): Collection
  219.     {
  220.         return $this->importdirects;
  221.     }
  222.     public function addImportdirect(Importdirect $importdirect): static
  223.     {
  224.         if (!$this->importdirects->contains($importdirect)) {
  225.             $this->importdirects->add($importdirect);
  226.             $importdirect->addAccarticle($this);
  227.         }
  228.         return $this;
  229.     }
  230.     public function removeImportdirect(Importdirect $importdirect): static
  231.     {
  232.         if ($this->importdirects->removeElement($importdirect)) {
  233.             $importdirect->removeAccarticle($this);
  234.         }
  235.         return $this;
  236.     }
  237.     public function getLogo(): ?string
  238.     {
  239.         return $this->logo;
  240.     }
  241.     public function setLogo(?string $logo): static
  242.     {
  243.         $this->logo $logo;
  244.         return $this;
  245.     }
  246.     public function getPrixttc(): ?string
  247.     {
  248.         return $this->prixttc;
  249.     }
  250.     public function setPrixttc(?string $prixttc): static
  251.     {
  252.         $this->prixttc $prixttc;
  253.         return $this;
  254.     }
  255.     public function getNgp(): ?string
  256.     {
  257.         return $this->ngp;
  258.     }
  259.     public function setNgp(?string $ngp): self
  260.     {
  261.         $this->ngp $ngp;
  262.         return $this;
  263.     }
  264.     public function getQtetotal(): ?string
  265.     {
  266.         return $this->qtetotal;
  267.     }
  268.     public function setQtetotal(?string $qtetotal): self
  269.     {
  270.         $this->qtetotal $qtetotal;
  271.         return $this;
  272.     }
  273.     public function getQtenf(): ?string
  274.     {
  275.         return $this->qtenf;
  276.     }
  277.     public function setQtenf(?string $qtenf): self
  278.     {
  279.         $this->qtenf $qtenf;
  280.         return $this;
  281.     }
  282.     /**
  283.      * @return Collection<int, Articleficheachatnf>
  284.      */
  285.     public function getArticleficheachatnfs(): Collection
  286.     {
  287.         return $this->articleficheachatnfs;
  288.     }
  289.     public function addArticleficheachatnf(Articleficheachatnf $articleficheachatnf): self
  290.     {
  291.         if (!$this->articleficheachatnfs->contains($articleficheachatnf)) {
  292.             $this->articleficheachatnfs->add($articleficheachatnf);
  293.             $articleficheachatnf->setProduit($this);
  294.         }
  295.         return $this;
  296.     }
  297.     public function removeArticleficheachatnf(Articleficheachatnf $articleficheachatnf): self
  298.     {
  299.         if ($this->articleficheachatnfs->removeElement($articleficheachatnf)) {
  300.             // set the owning side to null (unless already changed)
  301.             if ($articleficheachatnf->getProduit() === $this) {
  302.                 $articleficheachatnf->setProduit(null);
  303.             }
  304.         }
  305.         return $this;
  306.     }
  307. }