src/Entity/ProduitStock.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProduitStockRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProduitStockRepository::class)]
  7. class ProduitStock
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?int $quantite null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?int $quantiteAlerte null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $datePeremption null;
  19.     #[ORM\ManyToOne(inversedBy'produitStocks')]
  20.     private ?Produit $produit null;
  21.     #[ORM\ManyToOne(inversedBy'produitStock')]
  22.     private ?Boutique $boutique null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getQuantite(): ?int
  28.     {
  29.         return $this->quantite;
  30.     }
  31.     public function setQuantite(int $quantite): static
  32.     {
  33.         $this->quantite $quantite;
  34.         return $this;
  35.     }
  36.     public function getQuantiteAlerte(): ?int
  37.     {
  38.         return $this->quantiteAlerte;
  39.     }
  40.     public function setQuantiteAlerte(?int $quantiteAlerte): static
  41.     {
  42.         $this->quantiteAlerte $quantiteAlerte;
  43.         return $this;
  44.     }
  45.     public function getDatePeremption(): ?\DateTimeInterface
  46.     {
  47.         return $this->datePeremption;
  48.     }
  49.     public function setDatePeremption(?\DateTimeInterface $datePeremption): static
  50.     {
  51.         $this->datePeremption $datePeremption;
  52.         return $this;
  53.     }
  54.     public function getProduit(): ?Produit
  55.     {
  56.         return $this->produit;
  57.     }
  58.     public function setProduit(?Produit $produit): static
  59.     {
  60.         $this->produit $produit;
  61.         return $this;
  62.     }
  63.     public function getBoutique(): ?Boutique
  64.     {
  65.         return $this->boutique;
  66.     }
  67.     public function setBoutique(?Boutique $boutique): static
  68.     {
  69.         $this->boutique $boutique;
  70.         return $this;
  71.     }
  72. }