src/Entity/Actualite.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActualiteRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassActualiteRepository::class)]
  7. class Actualite
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $imageNom null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $description null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?int $ordre null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $dateFin null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $dateDebut null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getImageNom(): ?string
  28.     {
  29.         return $this->imageNom;
  30.     }
  31.     public function setImageNom(?string $imageNom): self
  32.     {
  33.         $this->imageNom $imageNom;
  34.         return $this;
  35.     }
  36.     public function getDescription(): ?string
  37.     {
  38.         return $this->description;
  39.     }
  40.     public function setDescription(?string $description): self
  41.     {
  42.         $this->description $description;
  43.         return $this;
  44.     }
  45.     public function getOrdre(): ?int
  46.     {
  47.         return $this->ordre;
  48.     }
  49.     public function setOrdre(?int $ordre): self
  50.     {
  51.         $this->ordre $ordre;
  52.         return $this;
  53.     }
  54.     public function getDateFin(): ?\DateTimeInterface
  55.     {
  56.         return $this->dateFin;
  57.     }
  58.     public function setDateFin(?\DateTimeInterface $dateFin): self
  59.     {
  60.         $this->dateFin $dateFin;
  61.         return $this;
  62.     }
  63.     public function getDateDebut(): ?\DateTimeInterface
  64.     {
  65.         return $this->dateDebut;
  66.     }
  67.     public function setDateDebut(?\DateTimeInterface $dateDebut): self
  68.     {
  69.         $this->dateDebut $dateDebut;
  70.         return $this;
  71.     }
  72. }