<?phpnamespace App\Entity;use App\Repository\ForecastDetailsRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ForecastDetailsRepository::class) */class ForecastDetails{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Forecast::class, inversedBy="forecastDetails") */ private $forecast; /** * @ORM\Column(type="string", length=255) */ private $product; /** * @ORM\Column(type="string", length=255) */ private $cip; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $collisage; /** * @ORM\Column(type="integer") */ private $quantity; /** * @ORM\Column(type="float") */ private $price; /** * @ORM\Column(type="float") */ private $total; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="forecastDetails") */ private $produit_id; public function getId(): ?int { return $this->id; } public function getForecast(): ?Forecast { return $this->forecast; } public function setForecast(?Forecast $forecast): self { $this->forecast = $forecast; return $this; } public function getProduct(): ?string { return $this->product; } public function setProduct(string $product): self { $this->product = $product; return $this; } public function getCip(): ?string { return $this->cip; } public function setCip(string $cip): self { $this->cip = $cip; return $this; } public function getCollisage(): ?string { return $this->collisage; } public function setCollisage(?string $collisage): self { $this->collisage = $collisage; return $this; } public function getQuantity(): ?int { return $this->quantity; } public function setQuantity(int $quantity): self { $this->quantity = $quantity; return $this; } public function getPrice(): ?float { return $this->price; } public function setPrice(float $price): self { $this->price = $price; return $this; } public function getTotal(): ?float { return $this->total; } public function setTotal(float $total): self { $this->total = $total; return $this; } public function getProduitId(): ?Product { return $this->produit_id; } public function setProduitId(?Product $produit_id): self { $this->produit_id = $produit_id; return $this; }}