src/Entity/Gallery.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\GalleryRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassGalleryRepository::class)]
  8. #[ApiResource]
  9. class Gallery
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $image1 null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $date null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $description null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $titre null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getImage1(): ?string
  28.     {
  29.         return $this->image1;
  30.     }
  31.     public function setImage1(?string $image1): self
  32.     {
  33.         $this->image1 $image1;
  34.         return $this;
  35.     }
  36.     public function getDate(): ?\DateTimeInterface
  37.     {
  38.         return $this->date;
  39.     }
  40.     public function setDate(?\DateTimeInterface $date): self
  41.     {
  42.         $this->date $date;
  43.         return $this;
  44.     }
  45.     public function getDescription(): ?string
  46.     {
  47.         return $this->description;
  48.     }
  49.     public function setDescription(string $description): self
  50.     {
  51.         $this->description $description;
  52.         return $this;
  53.     }
  54.     public function getTitre(): ?string
  55.     {
  56.         return $this->titre;
  57.     }
  58.     public function setTitre(?string $titre): self
  59.     {
  60.         $this->titre $titre;
  61.         return $this;
  62.     }
  63. }