src/Entity/SpecialCustomer.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SpecialCustomerRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSpecialCustomerRepository::class)]
  6. class SpecialCustomer
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'specialCustomerPourcent')]
  13.     private $user;
  14.     #[ORM\Column(name'active'type'boolean')]
  15.     private ?bool $active;
  16.     #[ORM\Column(name'pourcentRebate'type'float')]
  17.     private ?float $pourcentRebate;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     /**
  23.      * @return mixed
  24.      */
  25.     public function getUser()
  26.     {
  27.         return $this->user;
  28.     }
  29.     /**
  30.      * @param mixed $user
  31.      */
  32.     public function setUser($user): void
  33.     {
  34.         $this->user $user;
  35.     }
  36.     /**
  37.      * @return bool|null
  38.      */
  39.     public function getActive(): ?bool
  40.     {
  41.         return $this->active;
  42.     }
  43.     /**
  44.      * @param bool|null $active
  45.      */
  46.     public function setActive(?bool $active): void
  47.     {
  48.         $this->active $active;
  49.     }
  50.     /**
  51.      * @return float|null
  52.      */
  53.     public function getPourcentRebate(): ?float
  54.     {
  55.         return $this->pourcentRebate;
  56.     }
  57.     /**
  58.      * @param float|null $pourcentRebate
  59.      */
  60.     public function setPourcentRebate(?float $pourcentRebate): void
  61.     {
  62.         $this->pourcentRebate $pourcentRebate;
  63.     }
  64. }