src/Entity/Gos/CouponCascadeStep.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity()
  6.  */
  7. class CouponCascadeStep
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $threshold;
  19.     /**
  20.      * @ORM\Column(type="integer")
  21.      */
  22.     private $discount;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="CouponCascadeSettings", inversedBy="steps")
  25.      */
  26.     private $cascadeSettings;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getThreshold(): ?int
  32.     {
  33.         return $this->threshold;
  34.     }
  35.     public function setThreshold(int $threshold): self
  36.     {
  37.         $this->threshold $threshold;
  38.         return $this;
  39.     }
  40.     public function getDiscount(): ?int
  41.     {
  42.         return $this->discount;
  43.     }
  44.     public function setDiscount(int $discount): self
  45.     {
  46.         $this->discount $discount;
  47.         return $this;
  48.     }
  49.     public function getCascadeSettings(): ?CouponCascadeSettings
  50.     {
  51.         return $this->cascadeSettings;
  52.     }
  53.     public function setCascadeSettings(?CouponCascadeSettings $cascadeSettings): self
  54.     {
  55.         $this->cascadeSettings $cascadeSettings;
  56.         return $this;
  57.     }
  58. }