src/Entity/Sponsors.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\SponsorsRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSponsorsRepository::class)]
  7. #[ApiResource]
  8. class Sponsors
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $title null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $image null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getTitle(): ?string
  23.     {
  24.         return $this->title;
  25.     }
  26.     public function setTitle(?string $title): self
  27.     {
  28.         $this->title $title;
  29.         return $this;
  30.     }
  31.     public function getImage(): ?string
  32.     {
  33.         return $this->image;
  34.     }
  35.     public function setImage(?string $image): self
  36.     {
  37.         $this->image $image;
  38.         return $this;
  39.     }
  40. }