src/Entity/ForecastDetails.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ForecastDetailsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ForecastDetailsRepository::class)
  7.  */
  8. class ForecastDetails
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Forecast::class, inversedBy="forecastDetails")
  18.      */
  19.     private $forecast;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $product;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $cip;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $collisage;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     private $quantity;
  36.     /**
  37.      * @ORM\Column(type="float")
  38.      */
  39.     private $price;
  40.     /**
  41.      * @ORM\Column(type="float")
  42.      */
  43.     private $total;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="forecastDetails")
  46.      */
  47.     private $produit_id;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getForecast(): ?Forecast
  53.     {
  54.         return $this->forecast;
  55.     }
  56.     public function setForecast(?Forecast $forecast): self
  57.     {
  58.         $this->forecast $forecast;
  59.         return $this;
  60.     }
  61.     public function getProduct(): ?string
  62.     {
  63.         return $this->product;
  64.     }
  65.     public function setProduct(string $product): self
  66.     {
  67.         $this->product $product;
  68.         return $this;
  69.     }
  70.     public function getCip(): ?string
  71.     {
  72.         return $this->cip;
  73.     }
  74.     public function setCip(string $cip): self
  75.     {
  76.         $this->cip $cip;
  77.         return $this;
  78.     }
  79.     public function getCollisage(): ?string
  80.     {
  81.         return $this->collisage;
  82.     }
  83.     public function setCollisage(?string $collisage): self
  84.     {
  85.         $this->collisage $collisage;
  86.         return $this;
  87.     }
  88.     public function getQuantity(): ?int
  89.     {
  90.         return $this->quantity;
  91.     }
  92.     public function setQuantity(int $quantity): self
  93.     {
  94.         $this->quantity $quantity;
  95.         return $this;
  96.     }
  97.     public function getPrice(): ?float
  98.     {
  99.         return $this->price;
  100.     }
  101.     public function setPrice(float $price): self
  102.     {
  103.         $this->price $price;
  104.         return $this;
  105.     }
  106.     public function getTotal(): ?float
  107.     {
  108.         return $this->total;
  109.     }
  110.     public function setTotal(float $total): self
  111.     {
  112.         $this->total $total;
  113.         return $this;
  114.     }
  115.     public function getProduitId(): ?Product
  116.     {
  117.         return $this->produit_id;
  118.     }
  119.     public function setProduitId(?Product $produit_id): self
  120.     {
  121.         $this->produit_id $produit_id;
  122.         return $this;
  123.     }
  124. }