src/Entity/EntreeStock.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EntreeStockRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEntreeStockRepository::class)]
  7. class EntreeStock
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  14.     private ?string $Quantite null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $dateArrive null;
  17.     #[ORM\ManyToOne(inversedBy'entreeStocks')]
  18.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  19.     private ?Produit $produit null;
  20.     #[ORM\ManyToOne(inversedBy'entreeStocks')]
  21.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  22.     private ?User $utilisateur null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  24.     private ?\DateTimeInterface $dateEntree null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getQuantite(): ?string
  30.     {
  31.         return $this->Quantite;
  32.     }
  33.     public function setQuantite(string $Quantite): static
  34.     {
  35.         $this->Quantite $Quantite;
  36.         return $this;
  37.     }
  38.     public function getDateArrive(): ?\DateTimeInterface
  39.     {
  40.         return $this->dateArrive;
  41.     }
  42.     public function setDateArrive(\DateTimeInterface $dateArrive): static
  43.     {
  44.         $this->dateArrive $dateArrive;
  45.         return $this;
  46.     }
  47.     public function getProduit(): ?Produit
  48.     {
  49.         return $this->produit;
  50.     }
  51.     public function setProduit(?Produit $produit): static
  52.     {
  53.         $this->produit $produit;
  54.         return $this;
  55.     }
  56.     public function getUtilisateur(): ?User
  57.     {
  58.         return $this->utilisateur;
  59.     }
  60.     public function setUtilisateur(?User $utilisateur): static
  61.     {
  62.         $this->utilisateur $utilisateur;
  63.         return $this;
  64.     }
  65.     public function getDateEntree(): ?\DateTimeInterface
  66.     {
  67.         return $this->dateEntree;
  68.     }
  69.     public function setDateEntree(\DateTimeInterface $dateEntree): static
  70.     {
  71.         $this->dateEntree $dateEntree;
  72.         return $this;
  73.     }
  74. }