<?php
namespace App\Entity;
use App\Repository\StockRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=StockRepository::class)
*/
class Stock
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $piece;
/**
* @ORM\ManyToOne(targetEntity=Produit::class, inversedBy="stocks")
*/
private $id_produit;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $quantite;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $montant_HTVA;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $num_bl;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $immatriculation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $reference;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $code_barre;
public function getId(): ?int
{
return $this->id;
}
public function getIdProduit(): ?Produit
{
return $this->id_produit;
}
public function setIdProduit(?Produit $id_produit): self
{
$this->id_produit = $id_produit;
return $this;
}
public function getQuantite(): ?string
{
return $this->quantite;
}
public function setQuantite(?string $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getMontantHTVA(): ?string
{
return $this->montant_HTVA;
}
public function setMontantHTVA(?string $montant_HTVA): self
{
$this->montant_HTVA = $montant_HTVA;
return $this;
}
public function getNumBl(): ?string
{
return $this->num_bl;
}
public function setNumBl(?string $num_bl): self
{
$this->num_bl = $num_bl;
return $this;
}
public function getImmatriculation(): ?string
{
return $this->immatriculation;
}
public function setImmatriculation(?string $immatriculation): self
{
$this->immatriculation = $immatriculation;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getPiece(): ?string
{
return $this->piece;
}
public function setPiece(?string $piece): self
{
$this->piece = $piece;
return $this;
}
public function getCodeBarre(): ?string
{
return $this->code_barre;
}
public function setCodeBarre(?string $code_barre): self
{
$this->code_barre = $code_barre;
return $this;
}
}