src/Entity/Slide.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass\App\Repository\SlideRepository::class)]
  5. class Slide
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private int $id;
  11.     #[ORM\Column(type'string'length255nullabletrue)]
  12.     private ?string $titrenull;
  13.     #[ORM\Column(type'integer'nullabletrue)]
  14.     private ?int $ordre;
  15.     #[ORM\Column(type'text'nullabletrue)]
  16.     private ?string $contenunull;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getTitre(): ?string
  22.     {
  23.         return $this->titre;
  24.     }
  25.     public function setTitre(?string $titre): self
  26.     {
  27.         $this->titre $titre;
  28.         return $this;
  29.     }
  30.     public function getOrdre(): ?int
  31.     {
  32.         return $this->ordre;
  33.     }
  34.     public function setOrdre(?int $ordre): self
  35.     {
  36.         $this->ordre $ordre;
  37.         return $this;
  38.     }
  39.     public function getContenu(): ?string
  40.     {
  41.         return $this->contenu;
  42.     }
  43.     public function setContenu(?string $contenu): self
  44.     {
  45.         $this->contenu $contenu;
  46.         return $this;
  47.     }
  48. }