Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
src
/
Entity
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/src/Entity/PriceDiscount.php
<?php namespace App\Entity; use App\Repository\PriceDiscountRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=PriceDiscountRepository::class) */ class PriceDiscount { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="float", nullable=true) */ private $price; /** * @ORM\ManyToOne(targetEntity=CategoryDiscount::class, inversedBy="priceDiscounts") * @ORM\JoinColumn(nullable=false) */ private $categoryDiscount; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="priceDiscounts") * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; public function getId(): ?int { return $this->id; } public function getPrice(): ?float { return $this->price; } public function setPrice(float $price): self { $this->price = $price; return $this; } public function getCategoryDiscount(): ?CategoryDiscount { return $this->categoryDiscount; } public function setCategoryDiscount(?CategoryDiscount $categoryDiscount): self { $this->categoryDiscount = $categoryDiscount; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } }