<?php
namespace App\Entity;
use App\Repository\ProduitStockRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProduitStockRepository::class)]
class ProduitStock
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $quantite = null;
#[ORM\Column(nullable: true)]
private ?int $quantiteAlerte = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $datePeremption = null;
#[ORM\ManyToOne(inversedBy: 'produitStocks')]
private ?Produit $produit = null;
#[ORM\ManyToOne(inversedBy: 'produitStock')]
private ?Boutique $boutique = null;
public function getId(): ?int
{
return $this->id;
}
public function getQuantite(): ?int
{
return $this->quantite;
}
public function setQuantite(int $quantite): static
{
$this->quantite = $quantite;
return $this;
}
public function getQuantiteAlerte(): ?int
{
return $this->quantiteAlerte;
}
public function setQuantiteAlerte(?int $quantiteAlerte): static
{
$this->quantiteAlerte = $quantiteAlerte;
return $this;
}
public function getDatePeremption(): ?\DateTimeInterface
{
return $this->datePeremption;
}
public function setDatePeremption(?\DateTimeInterface $datePeremption): static
{
$this->datePeremption = $datePeremption;
return $this;
}
public function getProduit(): ?Produit
{
return $this->produit;
}
public function setProduit(?Produit $produit): static
{
$this->produit = $produit;
return $this;
}
public function getBoutique(): ?Boutique
{
return $this->boutique;
}
public function setBoutique(?Boutique $boutique): static
{
$this->boutique = $boutique;
return $this;
}
}