src/Entity/Stock.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StockRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=StockRepository::class)
  7.  */
  8. class Stock
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $piece;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Produit::class, inversedBy="stocks")
  22.      */
  23.     private $id_produit;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $quantite;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $montant_HTVA;
  32.      /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $num_bl;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $immatriculation;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $reference;
  44.      /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $code_barre;
  48.     
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getIdProduit(): ?Produit
  54.     {
  55.         return $this->id_produit;
  56.     }
  57.     public function setIdProduit(?Produit $id_produit): self
  58.     {
  59.         $this->id_produit = $id_produit;
  60.         return $this;
  61.     }
  62.     public function getQuantite(): ?string
  63.     {
  64.         return $this->quantite;
  65.     }
  66.     public function setQuantite(?string $quantite): self
  67.     {
  68.         $this->quantite = $quantite;
  69.         return $this;
  70.     }
  71.     public function getMontantHTVA(): ?string
  72.     {
  73.         return $this->montant_HTVA;
  74.     }
  75.     public function setMontantHTVA(?string $montant_HTVA): self
  76.     {
  77.         $this->montant_HTVA = $montant_HTVA;
  78.         return $this;
  79.     }
  80.     public function getNumBl(): ?string
  81.     {
  82.         return $this->num_bl;
  83.     }
  84.     public function setNumBl(?string $num_bl): self
  85.     {
  86.         $this->num_bl = $num_bl;
  87.         return $this;
  88.     }
  89.     public function getImmatriculation(): ?string
  90.     {
  91.         return $this->immatriculation;
  92.     }
  93.     public function setImmatriculation(?string $immatriculation): self
  94.     {
  95.         $this->immatriculation = $immatriculation;
  96.         return $this;
  97.     }
  98.     public function getReference(): ?string
  99.     {
  100.         return $this->reference;
  101.     }
  102.     public function setReference(?string $reference): self
  103.     {
  104.         $this->reference = $reference;
  105.         return $this;
  106.     }
  107.     public function getPiece(): ?string
  108.     {
  109.         return $this->piece;
  110.     }
  111.     public function setPiece(?string $piece): self
  112.     {
  113.         $this->piece = $piece;
  114.         return $this;
  115.     }
  116.     public function getCodeBarre(): ?string
  117.     {
  118.         return $this->code_barre;
  119.     }
  120.     public function setCodeBarre(?string $code_barre): self
  121.     {
  122.         $this->code_barre = $code_barre;
  123.         return $this;
  124.     }
  125.     
  126. }