src/Entity/Rebate.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RebateRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassRebateRepository::class)]
  7. class Rebate
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(name'min'type'integer')]
  14.     private ?int $min;
  15.     #[ORM\Column(name'max'type'integer')]
  16.     private ?int $max;
  17.     #[ORM\Column(name'pourcentRebate'type'integer')]
  18.     private ?int $pourcentRebate;
  19.     #[ORM\Column(name'status'type'boolean')]
  20.     private ?bool $status;
  21.     #[ORM\Column(name'excluded_products'typeTypes::SIMPLE_ARRAYnullabletrue)]
  22.     private ?array $excluded_products null;
  23.     #[ORM\Column(name'specific_products'typeTypes::SIMPLE_ARRAYnullabletrue)]
  24.     private ?array $specific_products null;
  25.     /**
  26.      * @return bool|null
  27.      */
  28.     public function getStatus(): ?bool
  29.     {
  30.         return $this->status;
  31.     }
  32.     /**
  33.      * @param bool|null $status
  34.      */
  35.     public function setStatus(?bool $status): void
  36.     {
  37.         $this->status $status;
  38.     }
  39.     /**
  40.      * @return int|null
  41.      */
  42.     public function getMin(): ?int
  43.     {
  44.         return $this->min;
  45.     }
  46.     /**
  47.      * @param int|null $min
  48.      */
  49.     public function setMin(?int $min): void
  50.     {
  51.         $this->min $min;
  52.     }
  53.     /**
  54.      * @return int|null
  55.      */
  56.     public function getMax(): ?int
  57.     {
  58.         return $this->max;
  59.     }
  60.     /**
  61.      * @param int|null $max
  62.      */
  63.     public function setMax(?int $max): void
  64.     {
  65.         $this->max $max;
  66.     }
  67.     /**
  68.      * @return int|null
  69.      */
  70.     public function getPourcentRebate(): ?int
  71.     {
  72.         return $this->pourcentRebate;
  73.     }
  74.     /**
  75.      * @param int|null $pourcentRebate
  76.      */
  77.     public function setPourcentRebate(?int $pourcentRebate): void
  78.     {
  79.         $this->pourcentRebate $pourcentRebate;
  80.     }
  81.     public function getId(): ?int
  82.     {
  83.         return $this->id;
  84.     }
  85.     public function getExcludedProducts(): ?array
  86.     {
  87.         return $this->excluded_products;
  88.     }
  89.     public function setExcludedProducts(?array $excluded_products): static
  90.     {
  91.         $this->excluded_products $excluded_products;
  92.         return $this;
  93.     }
  94.     public function getSpecificProducts(): ?array
  95.     {
  96.         return $this->specific_products;
  97.     }
  98.     public function setSpecificProducts(?array $specific_products): static
  99.     {
  100.         $this->specific_products $specific_products;
  101.         return $this;
  102.     }
  103. }