src/Entity/OnlineShop/VolumeDiscount.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\OnlineShop;
  3. use App\Entity\AbstractBase;
  4. use App\Repository\OnlineShop\VolumeDiscountRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Table(name="vulco_volume_discount")
  9.  * @ORM\Entity(repositoryClass=VolumeDiscountRepository::class)
  10.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  11.  */
  12. class VolumeDiscount extends AbstractBase
  13. {
  14.     /**
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private int $volume;
  18.     /**
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private int $rateDiscount;
  22.     /**
  23.      * @ORM\Column(type="integer")
  24.      */
  25.     private int $costDiscount;
  26.     public function getVolume(): int
  27.     {
  28.         return $this->volume;
  29.     }
  30.     public function setVolume(int $volume): self
  31.     {
  32.         $this->volume $volume;
  33.         return $this;
  34.     }
  35.     public function getRateDiscount(): int
  36.     {
  37.         return $this->rateDiscount;
  38.     }
  39.     public function setRateDiscount(int $rateDiscount): self
  40.     {
  41.         $this->rateDiscount $rateDiscount;
  42.         return $this;
  43.     }
  44.     public function getCostDiscount(): int
  45.     {
  46.         return $this->costDiscount;
  47.     }
  48.     public function setCostDiscount(int $costDiscount): self
  49.     {
  50.         $this->costDiscount $costDiscount;
  51.         return $this;
  52.     }
  53. }