src/Entity/Stock.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StockRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassStockRepository::class)]
  6. class Stock
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'stocks')]
  13.     private ?Product $product null;
  14.     #[ORM\Column]
  15.     private ?float $qty null;
  16.     #[ORM\Column]
  17.     private ?float $prixRevient null;
  18.     #[ORM\Column]
  19.     private ?float $prixVente null;
  20.     #[ORM\ManyToOne(inversedBy'stocks')]
  21.     private ?EntreStock $entreStock null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getProduct(): ?Product
  27.     {
  28.         return $this->product;
  29.     }
  30.     public function setProduct(?Product $product): self
  31.     {
  32.         $this->product $product;
  33.         return $this;
  34.     }
  35.     public function getQty(): ?float
  36.     {
  37.         return $this->qty;
  38.     }
  39.     public function setQty(float $qty): self
  40.     {
  41.         $this->qty $qty;
  42.         return $this;
  43.     }
  44.     public function getPrixRevient(): ?float
  45.     {
  46.         return $this->prixRevient;
  47.     }
  48.     public function setPrixRevient(float $prixRevient): self
  49.     {
  50.         $this->prixRevient $prixRevient;
  51.         return $this;
  52.     }
  53.     public function getPrixVente(): ?float
  54.     {
  55.         return $this->prixVente;
  56.     }
  57.     public function setPrixVente(float $prixVente): self
  58.     {
  59.         $this->prixVente $prixVente;
  60.         return $this;
  61.     }
  62.     public function getEntreStock(): ?EntreStock
  63.     {
  64.         return $this->entreStock;
  65.     }
  66.     public function setEntreStock(?EntreStock $entreStock): self
  67.     {
  68.         $this->entreStock $entreStock;
  69.         return $this;
  70.     }
  71. }