src/Entity/Popups.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PopupsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. #[ORM\Entity(repositoryClass: PopupsRepository::class)]
  7. class Popups
  8. {
  9.    #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id;
  13.     #[ORM\Column(length: 255)]
  14.     private ?string $img;
  15.     
  16.     #[ORM\Column(length: 255)]
  17.     private ?string $lien;
  18.     #[ORM\Column(type: 'date', nullable: true)]
  19.     private ?\DateTimeInterface $debut = null;
  20.     
  21.     #[ORM\Column(type: 'date', nullable: true)]
  22.     private ?\DateTimeInterface $fin = null;
  23.     #[ORM\Column]
  24.     private ?int $statut;
  25.     #[ORM\Column(length: 10)]
  26.     private ?int $adminsid;
  27.     #[ORM\Column]
  28.     private ?\DateTimeImmutable $createdat = null;
  29.     #[ORM\Column]
  30.     private ?\DateTimeImmutable $updatedat = null;
  31.     public function __construct(){
  32.         $this->createdat = new \DateTimeImmutable();
  33.         $this->updatedat = new \DateTimeImmutable();
  34.     }
  35.     public function getId(): ?int
  36.     { return $this->id; }
  37.     public function getImg(): ?string
  38.     { return $this->img; }
  39.     public function setImg(string $img): static
  40.     { $this->img = $img;return $this; }
  41.     public function getLien(): ?string
  42.     { return $this->lien; }
  43.     public function setLien(string $lien): static
  44.     { $this->lien = $lien; return $this; }
  45.     public function getDebut(): ?\DateTimeInterface
  46.     { return $this->debut;}
  47.     public function setDebut(?\DateTimeInterface $debut): static
  48.     { $this->debut = $debut; return $this; }
  49.     public function getFin(): ?\DateTimeInterface
  50.     { return $this->fin; }
  51.     public function setFin(?\DateTimeInterface $fin): static
  52.     { $this->fin = $fin; return $this; } 
  53.     public function getStatut(): ?int
  54.     { return $this->statut; }
  55.     public function setStatut(int $statut): static
  56.     { $this->statut = $statut; return $this; }
  57.     
  58.     public function getAdminsId(): ?int
  59.     { return $this->adminsid; }
  60.     public function setAdminsId(int $adminsid): static
  61.     { $this->adminsid = $adminsid; return $this; }
  62.     
  63.     public function getCreatedAt(): ?\DateTimeImmutable
  64.     { return $this->createdat; }
  65.     public function setCreatedAt(\DateTimeImmutable $createdat): static
  66.     { $this->createdat = $createdat; return $this; }
  67.     
  68.     public function getUpdatedAt(): ?\DateTimeImmutable
  69.     { return $this->updatedat; }
  70.     public function UpdatedAt(\DateTimeImmutable $updatedat): static
  71.     { $this->updatedat = $updatedat; return $this;}
  72. }