<?php
namespace App\Entity;
use App\Repository\EntreeStockRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EntreeStockRepository::class)]
class EntreeStock
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $Quantite = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $dateArrive = null;
#[ORM\ManyToOne(inversedBy: 'entreeStocks')]
private ?Produit $produit = null;
#[ORM\ManyToOne(inversedBy: 'entreeStocks')]
private ?User $utilisateur = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $dateEntree = null;
#[ORM\ManyToOne(inversedBy: 'entreeStocks')]
private ?Boutique $boutique = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $chauffeur = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $provenance = 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 getDateArrive(): ?\DateTimeInterface
{
return $this->dateArrive;
}
public function setDateArrive(\DateTimeInterface $dateArrive): static
{
$this->dateArrive = $dateArrive;
return $this;
}
public function getProduit(): ?Produit
{
return $this->produit;
}
public function setProduit(?Produit $produit): static
{
$this->produit = $produit;
return $this;
}
public function getUtilisateur(): ?User
{
return $this->utilisateur;
}
public function setUtilisateur(?User $utilisateur): static
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getDateEntree(): ?\DateTimeInterface
{
return $this->dateEntree;
}
public function setDateEntree(\DateTimeInterface $dateEntree): static
{
$this->dateEntree = $dateEntree;
return $this;
}
public function getBoutique(): ?Boutique
{
return $this->boutique;
}
public function setBoutique(?Boutique $boutique): static
{
$this->boutique = $boutique;
return $this;
}
public function getChauffeur(): ?string
{
return $this->chauffeur;
}
public function setChauffeur(?string $chauffeur): static
{
$this->chauffeur = $chauffeur;
return $this;
}
public function getProvenance(): ?string
{
return $this->provenance;
}
public function setProvenance(?string $provenance): static
{
$this->provenance = $provenance;
return $this;
}
}