src/Entity/Coupon.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CouponRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCouponRepository::class)]
  7. class Coupon
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $libelle null;
  15.     #[ORM\Column(length255nullabletrue,uniquetrue)]
  16.     private ?string $code null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $statut null;
  19.     #[ORM\ManyToOne(inversedBy'coupons')]
  20.     private ?User $user null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?bool $isActif null;
  23.     #[ORM\ManyToOne(inversedBy'coupons')]
  24.     private ?LotCoupon $lotCoupon null;
  25.     #[ORM\ManyToOne(inversedBy'coupons')]
  26.     private ?InscritSession $inscrit null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getLibelle(): ?string
  32.     {
  33.         return $this->libelle;
  34.     }
  35.     public function setLibelle(?string $libelle): self
  36.     {
  37.         $this->libelle $libelle;
  38.         return $this;
  39.     }
  40.     public function getCode(): ?string
  41.     {
  42.         return $this->code;
  43.     }
  44.     public function setCode(?string $code): self
  45.     {
  46.         $this->code $code;
  47.         return $this;
  48.     }
  49.     public function getStatut(): ?string
  50.     {
  51.         return $this->statut;
  52.     }
  53.     public function setStatut(?string $statut): self
  54.     {
  55.         $this->statut $statut;
  56.         return $this;
  57.     }
  58.     public function getUser(): ?User
  59.     {
  60.         return $this->user;
  61.     }
  62.     public function setUser(?User $user): self
  63.     {
  64.         $this->user $user;
  65.         return $this;
  66.     }
  67.     public function isIsActif(): ?bool
  68.     {
  69.         return $this->isActif;
  70.     }
  71.     public function setIsActif(?bool $isActif): self
  72.     {
  73.         $this->isActif $isActif;
  74.         return $this;
  75.     }
  76.     public function getLotCoupon(): ?LotCoupon
  77.     {
  78.         return $this->lotCoupon;
  79.     }
  80.     public function setLotCoupon(?LotCoupon $lotCoupon): self
  81.     {
  82.         $this->lotCoupon $lotCoupon;
  83.         return $this;
  84.     }
  85.     public function getInscrit(): ?InscritSession
  86.     {
  87.         return $this->inscrit;
  88.     }
  89.     public function setInscrit(?InscritSession $inscrit): self
  90.     {
  91.         $this->inscrit $inscrit;
  92.         return $this;
  93.     }
  94. }