<?php
namespace App\Entity;
use App\Repository\ProductAutoReductionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProductAutoReductionRepository::class)
*/
class ProductAutoReduction
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $reductionPercentage;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="productAutoReductions")
*/
private $Product;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $duration;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $countdown;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $createdAt;
public function getId(): ?int
{
return $this->id;
}
public function getReductionPercentage(): ?int
{
return $this->reductionPercentage;
}
public function setReductionPercentage(?int $reductionPercentage): self
{
$this->reductionPercentage = $reductionPercentage;
return $this;
}
public function getProduct(): ?Product
{
return $this->Product;
}
public function setProduct(?Product $Product): self
{
$this->Product = $Product;
return $this;
}
public function getDuration(): ?int
{
return $this->duration;
}
public function setDuration(?int $duration): self
{
$this->duration = $duration;
return $this;
}
public function getCountdown(): ?int
{
return $this->countdown;
}
public function setCountdown(?int $countdown): self
{
$this->countdown = $countdown;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}