src/Entity/Partners.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\PartnersRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPartnersRepository::class)]
  7. #[ApiResource]
  8. class Partners
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $image null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $nom null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $adresse null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getImage(): ?string
  25.     {
  26.         return $this->image;
  27.     }
  28.     public function setImage(?string $image): self
  29.     {
  30.         $this->image $image;
  31.         return $this;
  32.     }
  33.     public function getNom(): ?string
  34.     {
  35.         return $this->nom;
  36.     }
  37.     public function setNom(?string $nom): self
  38.     {
  39.         $this->nom $nom;
  40.         return $this;
  41.     }
  42.     public function getAdresse(): ?string
  43.     {
  44.         return $this->adresse;
  45.     }
  46.     public function setAdresse(?string $adresse): self
  47.     {
  48.         $this->adresse $adresse;
  49.         return $this;
  50.     }
  51. }