src/Entity/Banniere.php line 13

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