src/Entity/ProductAutoReduction.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductAutoReductionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProductAutoReductionRepository::class)
  7.  */
  8. class ProductAutoReduction
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer", nullable=true)
  18.      */
  19.     private $reductionPercentage;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="productAutoReductions")
  22.      */
  23.     private $Product;
  24.     /**
  25.      * @ORM\Column(type="integer", nullable=true)
  26.      */
  27.     private $duration;
  28.     /**
  29.      * @ORM\Column(type="integer", nullable=true)
  30.      */
  31.     private $countdown;
  32.     /**
  33.      * @ORM\Column(type="date", nullable=true)
  34.      */
  35.     private $createdAt;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getReductionPercentage(): ?int
  41.     {
  42.         return $this->reductionPercentage;
  43.     }
  44.     public function setReductionPercentage(?int $reductionPercentage): self
  45.     {
  46.         $this->reductionPercentage $reductionPercentage;
  47.         return $this;
  48.     }
  49.     public function getProduct(): ?Product
  50.     {
  51.         return $this->Product;
  52.     }
  53.     public function setProduct(?Product $Product): self
  54.     {
  55.         $this->Product $Product;
  56.         return $this;
  57.     }
  58.     public function getDuration(): ?int
  59.     {
  60.         return $this->duration;
  61.     }
  62.     public function setDuration(?int $duration): self
  63.     {
  64.         $this->duration $duration;
  65.         return $this;
  66.     }
  67.     public function getCountdown(): ?int
  68.     {
  69.         return $this->countdown;
  70.     }
  71.     public function setCountdown(?int $countdown): self
  72.     {
  73.         $this->countdown $countdown;
  74.         return $this;
  75.     }
  76.     public function getCreatedAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->createdAt;
  79.     }
  80.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  81.     {
  82.         $this->createdAt $createdAt;
  83.         return $this;
  84.     }
  85. }