<?php
namespace App\Entity\Gos;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class CouponCascadeStep
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $threshold;
/**
* @ORM\Column(type="integer")
*/
private $discount;
/**
* @ORM\ManyToOne(targetEntity="CouponCascadeSettings", inversedBy="steps")
*/
private $cascadeSettings;
public function getId(): ?int
{
return $this->id;
}
public function getThreshold(): ?int
{
return $this->threshold;
}
public function setThreshold(int $threshold): self
{
$this->threshold = $threshold;
return $this;
}
public function getDiscount(): ?int
{
return $this->discount;
}
public function setDiscount(int $discount): self
{
$this->discount = $discount;
return $this;
}
public function getCascadeSettings(): ?CouponCascadeSettings
{
return $this->cascadeSettings;
}
public function setCascadeSettings(?CouponCascadeSettings $cascadeSettings): self
{
$this->cascadeSettings = $cascadeSettings;
return $this;
}
}