<?phpnamespace App\Entity;use App\Repository\CouponRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CouponRepository::class)]class Coupon{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $libelle = null; #[ORM\Column(length: 255, nullable: true,unique: true)] private ?string $code = null; #[ORM\Column(length: 255, nullable: true)] private ?string $statut = null; #[ORM\ManyToOne(inversedBy: 'coupons')] private ?User $user = null; #[ORM\Column(nullable: true)] private ?bool $isActif = null; #[ORM\ManyToOne(inversedBy: 'coupons')] private ?LotCoupon $lotCoupon = null; #[ORM\ManyToOne(inversedBy: 'coupons')] private ?InscritSession $inscrit = null; public function getId(): ?int { return $this->id; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(?string $libelle): self { $this->libelle = $libelle; return $this; } public function getCode(): ?string { return $this->code; } public function setCode(?string $code): self { $this->code = $code; return $this; } public function getStatut(): ?string { return $this->statut; } public function setStatut(?string $statut): self { $this->statut = $statut; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function isIsActif(): ?bool { return $this->isActif; } public function setIsActif(?bool $isActif): self { $this->isActif = $isActif; return $this; } public function getLotCoupon(): ?LotCoupon { return $this->lotCoupon; } public function setLotCoupon(?LotCoupon $lotCoupon): self { $this->lotCoupon = $lotCoupon; return $this; } public function getInscrit(): ?InscritSession { return $this->inscrit; } public function setInscrit(?InscritSession $inscrit): self { $this->inscrit = $inscrit; return $this; }}