src/Entity/Team.php line 14

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