src/Entity/SortieStock.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SortieStockRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSortieStockRepository::class)]
  7. class SortieStock
  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(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $dateSortie null;
  17.     #[ORM\ManyToOne(inversedBy'sortieStocks')]
  18.     private ?Produit $produit null;
  19.     #[ORM\ManyToOne(inversedBy'sortieStocks')]
  20.     private ?User $utilisateur null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?float $prixVente null;
  23.     #[ORM\ManyToOne(inversedBy'sortieStocks')]
  24.     private ?Boutique $boutique null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $numeroFacture null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $motif null;
  29.     #[ORM\Column(length50nullabletrue)]
  30.     private ?string $typeSortie null// VENTE, CASSE, PERTE, DON, ECHANTILLON, RETOUR_FOURNISSEUR, CONSOMMATION_INTERNE, AUTRE
  31.     #[ORM\OneToOne(mappedBy'sortieStock')]
  32.     private ?TransfertStock $transfertStock null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getQuantite(): ?int
  38.     {
  39.         return $this->quantite;
  40.     }
  41.     public function setQuantite(int $quantite): static
  42.     {
  43.         $this->quantite $quantite;
  44.         return $this;
  45.     }
  46.     public function getDateSortie(): ?\DateTimeInterface
  47.     {
  48.         return $this->dateSortie;
  49.     }
  50.     public function setDateSortie(\DateTimeInterface $dateSortie): static
  51.     {
  52.         $this->dateSortie $dateSortie;
  53.         return $this;
  54.     }
  55.     public function getProduit(): ?Produit
  56.     {
  57.         return $this->produit;
  58.     }
  59.     public function setProduit(?Produit $produit): static
  60.     {
  61.         $this->produit $produit;
  62.         return $this;
  63.     }
  64.     public function getUtilisateur(): ?User
  65.     {
  66.         return $this->utilisateur;
  67.     }
  68.     public function setUtilisateur(?User $utilisateur): static
  69.     {
  70.         $this->utilisateur $utilisateur;
  71.         return $this;
  72.     }
  73.     public function getPrixVente(): ?float
  74.     {
  75.         return $this->prixVente;
  76.     }
  77.     public function setPrixVente(?float $prixVente): static
  78.     {
  79.         $this->prixVente $prixVente;
  80.         return $this;
  81.     }
  82.     public function getBoutique(): ?Boutique
  83.     {
  84.         return $this->boutique;
  85.     }
  86.     public function setBoutique(?Boutique $boutique): static
  87.     {
  88.         $this->boutique $boutique;
  89.         return $this;
  90.     }
  91.     public function getNumeroFacture(): ?string
  92.     {
  93.         return $this->numeroFacture;
  94.     }
  95.     public function setNumeroFacture(?string $numeroFacture): static
  96.     {
  97.         $this->numeroFacture $numeroFacture;
  98.         return $this;
  99.     }
  100.     public function getMotif(): ?string
  101.     {
  102.         return $this->motif;
  103.     }
  104.     public function setMotif(?string $motif): static
  105.     {
  106.         $this->motif $motif;
  107.         return $this;
  108.     }
  109.     public function getTypeSortie(): ?string
  110.     {
  111.         return $this->typeSortie;
  112.     }
  113.     public function setTypeSortie(?string $typeSortie): static
  114.     {
  115.         $this->typeSortie $typeSortie;
  116.         return $this;
  117.     }
  118.     public function getTransfertStock(): ?TransfertStock
  119.     {
  120.         return $this->transfertStock;
  121.     }
  122.     public function setTransfertStock(?TransfertStock $transfertStock): static
  123.     {
  124.         // set the owning side of the relation if necessary
  125.         if ($transfertStock !== null && $transfertStock->getSortieStock() !== $this) {
  126.             $transfertStock->setSortieStock($this);
  127.         }
  128.         $this->transfertStock $transfertStock;
  129.         return $this;
  130.     }
  131. }