<?php
namespace App\Entity;
use App\Repository\DetailsproduitRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DetailsproduitRepository::class)]
class Detailsproduit
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $qte = null;
#[ORM\ManyToOne(inversedBy: 'detailsProduits')]
private ?Produits $produit = null;
#[ORM\ManyToOne(inversedBy: 'detailsproduits')]
private ?Coleur $couleur = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $qtelimite = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nombreRouleaux = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prixht = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $tva = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prixttc = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $total = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $dimensionlogo = null;
#[ORM\OneToMany(targetEntity: Articlebonsortie::class, mappedBy: 'detailsproduit')]
private Collection $articlebonsorties;
#[ORM\OneToMany(targetEntity: Articlegestion::class, mappedBy: 'detailsproduit')]
private Collection $articlegestions;
#[ORM\Column(length: 255, nullable: true)]
private ?string $dimkappa = null;
public function __construct()
{
$this->articlebonsorties = new ArrayCollection();
$this->articlegestions = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getQte(): ?string
{
return $this->qte;
}
public function setQte(?string $qte): static
{
$this->qte = $qte;
return $this;
}
public function getProduit(): ?Produits
{
return $this->produit;
}
public function setProduit(?Produits $produit): static
{
$this->produit = $produit;
return $this;
}
public function getCouleur(): ?Coleur
{
return $this->couleur;
}
public function setCouleur(?Coleur $couleur): static
{
$this->couleur = $couleur;
return $this;
}
public function getQtelimite(): ?string
{
return $this->qtelimite;
}
public function setQtelimite(?string $qtelimite): static
{
$this->qtelimite = $qtelimite;
return $this;
}
public function getNombreRouleaux(): ?string
{
return $this->nombreRouleaux;
}
public function setNombreRouleaux(?string $nombreRouleaux): static
{
$this->nombreRouleaux = $nombreRouleaux;
return $this;
}
public function getPrixht(): ?string
{
return $this->prixht;
}
public function setPrixht(?string $prixht): static
{
$this->prixht = $prixht;
return $this;
}
public function getTva(): ?string
{
return $this->tva;
}
public function setTva(?string $tva): static
{
$this->tva = $tva;
return $this;
}
public function getPrixttc(): ?string
{
return $this->prixttc;
}
public function setPrixttc(?string $prixttc): static
{
$this->prixttc = $prixttc;
return $this;
}
public function getTotal(): ?string
{
return $this->total;
}
public function setTotal(?string $total): static
{
$this->total = $total;
return $this;
}
public function getDimensionlogo(): ?string
{
return $this->dimensionlogo;
}
public function setDimensionlogo(?string $dimensionlogo): static
{
$this->dimensionlogo = $dimensionlogo;
return $this;
}
/**
* @return Collection<int, Articlebonsortie>
*/
public function getArticlebonsorties(): Collection
{
return $this->articlebonsorties;
}
public function addArticlebonsorty(Articlebonsortie $articlebonsorty): static
{
if (!$this->articlebonsorties->contains($articlebonsorty)) {
$this->articlebonsorties->add($articlebonsorty);
$articlebonsorty->setDetailsproduit($this);
}
return $this;
}
public function removeArticlebonsorty(Articlebonsortie $articlebonsorty): static
{
if ($this->articlebonsorties->removeElement($articlebonsorty)) {
// set the owning side to null (unless already changed)
if ($articlebonsorty->getDetailsproduit() === $this) {
$articlebonsorty->setDetailsproduit(null);
}
}
return $this;
}
/**
* @return Collection<int, Articlegestion>
*/
public function getArticlegestions(): Collection
{
return $this->articlegestions;
}
public function addArticlegestion(Articlegestion $articlegestion): static
{
if (!$this->articlegestions->contains($articlegestion)) {
$this->articlegestions->add($articlegestion);
$articlegestion->setDetailsproduit($this);
}
return $this;
}
public function removeArticlegestion(Articlegestion $articlegestion): static
{
if ($this->articlegestions->removeElement($articlegestion)) {
// set the owning side to null (unless already changed)
if ($articlegestion->getDetailsproduit() === $this) {
$articlegestion->setDetailsproduit(null);
}
}
return $this;
}
public function getDimkappa(): ?string
{
return $this->dimkappa;
}
public function setDimkappa(?string $dimkappa): static
{
$this->dimkappa = $dimkappa;
return $this;
}
}