src/Entity/BrandDiscount.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BrandDiscountRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBrandDiscountRepository::class)]
  6. class BrandDiscount
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(name'brandName'type'string'length255nullablefalse)]
  13.     private ?string $brandName;
  14.     #[ORM\Column(name'rebateLow'type'integer'nullablefalse)]
  15.     private ?int $rebateLow;
  16.     #[ORM\Column(name'rebateHeigh'type'integer'nullablefalse)]
  17.     private ?int $rebateHeigh;
  18.     #[ORM\Column(name'active'type'boolean')]
  19.     private ?bool $active;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     /**
  25.      * @return string|null
  26.      */
  27.     public function getBrandName(): ?string
  28.     {
  29.         return $this->brandName;
  30.     }
  31.     /**
  32.      * @param string|null $brandName
  33.      */
  34.     public function setBrandName(?string $brandName): void
  35.     {
  36.         $this->brandName $brandName;
  37.     }
  38.     /**
  39.      * @return int|null
  40.      */
  41.     public function getRebateLow(): ?int
  42.     {
  43.         return $this->rebateLow;
  44.     }
  45.     /**
  46.      * @param int|null $rebateLow
  47.      */
  48.     public function setRebateLow(?int $rebateLow): void
  49.     {
  50.         $this->rebateLow $rebateLow;
  51.     }
  52.     /**
  53.      * @return int|null
  54.      */
  55.     public function getRebateHeigh(): ?int
  56.     {
  57.         return $this->rebateHeigh;
  58.     }
  59.     /**
  60.      * @param int|null $rebateHeigh
  61.      */
  62.     public function setRebateHeigh(?int $rebateHeigh): void
  63.     {
  64.         $this->rebateHeigh $rebateHeigh;
  65.     }
  66.     /**
  67.      * @return bool|null
  68.      */
  69.     public function getActive(): ?bool
  70.     {
  71.         return $this->active;
  72.     }
  73.     /**
  74.      * @param bool|null $active
  75.      */
  76.     public function setActive(?bool $active): void
  77.     {
  78.         $this->active $active;
  79.     }
  80. }