src/Entity/Detailsproduit.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DetailsproduitRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassDetailsproduitRepository::class)]
  8. class Detailsproduit
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $qte null;
  16.     #[ORM\ManyToOne(inversedBy'detailsProduits')]
  17.     private ?Produits $produit null;
  18.     #[ORM\ManyToOne(inversedBy'detailsproduits')]
  19.     private ?Coleur $couleur null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $qtelimite null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $nombreRouleaux null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $prixht null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $tva null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $prixttc null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $total null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $dimensionlogo null;
  34.     #[ORM\OneToMany(targetEntityArticlebonsortie::class, mappedBy'detailsproduit')]
  35.     private Collection $articlebonsorties;
  36.     #[ORM\OneToMany(targetEntityArticlegestion::class, mappedBy'detailsproduit')]
  37.     private Collection $articlegestions;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $dimkappa null;
  40.     public function __construct()
  41.     {
  42.         $this->articlebonsorties = new ArrayCollection();
  43.         $this->articlegestions = new ArrayCollection();
  44.     }
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getQte(): ?string
  50.     {
  51.         return $this->qte;
  52.     }
  53.     public function setQte(?string $qte): static
  54.     {
  55.         $this->qte $qte;
  56.         return $this;
  57.     }
  58.     public function getProduit(): ?Produits
  59.     {
  60.         return $this->produit;
  61.     }
  62.     public function setProduit(?Produits $produit): static
  63.     {
  64.         $this->produit $produit;
  65.         return $this;
  66.     }
  67.     public function getCouleur(): ?Coleur
  68.     {
  69.         return $this->couleur;
  70.     }
  71.     public function setCouleur(?Coleur $couleur): static
  72.     {
  73.         $this->couleur $couleur;
  74.         return $this;
  75.     }
  76.     public function getQtelimite(): ?string
  77.     {
  78.         return $this->qtelimite;
  79.     }
  80.     public function setQtelimite(?string $qtelimite): static
  81.     {
  82.         $this->qtelimite $qtelimite;
  83.         return $this;
  84.     }
  85.     public function getNombreRouleaux(): ?string
  86.     {
  87.         return $this->nombreRouleaux;
  88.     }
  89.     public function setNombreRouleaux(?string $nombreRouleaux): static
  90.     {
  91.         $this->nombreRouleaux $nombreRouleaux;
  92.         return $this;
  93.     }
  94.     public function getPrixht(): ?string
  95.     {
  96.         return $this->prixht;
  97.     }
  98.     public function setPrixht(?string $prixht): static
  99.     {
  100.         $this->prixht $prixht;
  101.         return $this;
  102.     }
  103.     public function getTva(): ?string
  104.     {
  105.         return $this->tva;
  106.     }
  107.     public function setTva(?string $tva): static
  108.     {
  109.         $this->tva $tva;
  110.         return $this;
  111.     }
  112.     public function getPrixttc(): ?string
  113.     {
  114.         return $this->prixttc;
  115.     }
  116.     public function setPrixttc(?string $prixttc): static
  117.     {
  118.         $this->prixttc $prixttc;
  119.         return $this;
  120.     }
  121.     public function getTotal(): ?string
  122.     {
  123.         return $this->total;
  124.     }
  125.     public function setTotal(?string $total): static
  126.     {
  127.         $this->total $total;
  128.         return $this;
  129.     }
  130.     public function getDimensionlogo(): ?string
  131.     {
  132.         return $this->dimensionlogo;
  133.     }
  134.     public function setDimensionlogo(?string $dimensionlogo): static
  135.     {
  136.         $this->dimensionlogo $dimensionlogo;
  137.         return $this;
  138.     }
  139.     /**
  140.      * @return Collection<int, Articlebonsortie>
  141.      */
  142.     public function getArticlebonsorties(): Collection
  143.     {
  144.         return $this->articlebonsorties;
  145.     }
  146.     public function addArticlebonsorty(Articlebonsortie $articlebonsorty): static
  147.     {
  148.         if (!$this->articlebonsorties->contains($articlebonsorty)) {
  149.             $this->articlebonsorties->add($articlebonsorty);
  150.             $articlebonsorty->setDetailsproduit($this);
  151.         }
  152.         return $this;
  153.     }
  154.     public function removeArticlebonsorty(Articlebonsortie $articlebonsorty): static
  155.     {
  156.         if ($this->articlebonsorties->removeElement($articlebonsorty)) {
  157.             // set the owning side to null (unless already changed)
  158.             if ($articlebonsorty->getDetailsproduit() === $this) {
  159.                 $articlebonsorty->setDetailsproduit(null);
  160.             }
  161.         }
  162.         return $this;
  163.     }
  164.     /**
  165.      * @return Collection<int, Articlegestion>
  166.      */
  167.     public function getArticlegestions(): Collection
  168.     {
  169.         return $this->articlegestions;
  170.     }
  171.     public function addArticlegestion(Articlegestion $articlegestion): static
  172.     {
  173.         if (!$this->articlegestions->contains($articlegestion)) {
  174.             $this->articlegestions->add($articlegestion);
  175.             $articlegestion->setDetailsproduit($this);
  176.         }
  177.         return $this;
  178.     }
  179.     public function removeArticlegestion(Articlegestion $articlegestion): static
  180.     {
  181.         if ($this->articlegestions->removeElement($articlegestion)) {
  182.             // set the owning side to null (unless already changed)
  183.             if ($articlegestion->getDetailsproduit() === $this) {
  184.                 $articlegestion->setDetailsproduit(null);
  185.             }
  186.         }
  187.         return $this;
  188.     }
  189.     public function getDimkappa(): ?string
  190.     {
  191.         return $this->dimkappa;
  192.     }
  193.     public function setDimkappa(?string $dimkappa): static
  194.     {
  195.         $this->dimkappa $dimkappa;
  196.         return $this;
  197.     }
  198. }